Lines Matching refs:from
54 time in the global scope (not inside function/class) and takes effect from
60 namespace qualification. All class and function names started from \
96 inside namespace (A\B) first tries to find and call function from current
100 function from the global namespace.
102 first tries to use (and autoload) class from current namespace and in case
104 you can only create class from this namespace or internal PHP class, however
105 using "new \A" you are able to create any class from the global namespace.
107 A\B\foo() first tries to call function foo() from namespace A\B, then
110 7) qualified class names are interpreted as class from corresponding
111 namespace. So "new A\B\C()" refers to class C from namespace A\B.
131 new A(); // first tries to create object of class "A" from namespace "A" (A\A)
137 B\foo(); // first tries to call function "foo" from namespace "A\B"
139 \B\foo(); // first tries to call function "foo" from namespace "B"
140 // then calls method "foo" of class "B" from global scope
146 A\foo(); // first tries to call function "foo" from namespace "A\A"
147 // then tries to call method "foo" of class "A" from namespace "A"
148 // then tries to call function "foo" from namespace "A"
150 \A\foo(); // first tries to call function "foo" from namespace "A"
151 // then calls method "foo" of class "A" from global scope