I am using namespaces to resolve class name conflicts in two of the SDKs I am using in my project
I have declared a name space in one of the file like
namespace temp;
class abc extends stdClass
{
// my class def
}
when i am hitting this code i get error says temp/stdClass not found, so I need to use all default php structures, interfaces like iterators etc. so how can I import the default namespace of php or do any another setting I am missing?
Add \\
before any global class, function and constant ( stdClass
in your example). Here is more information how to use namespaces.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.