Lines Matching refs:tries
96 inside namespace (A\B) first tries to find and call function from current
97 namespace A\B\foo() and if it doesn't exist PHP tries to call internal
102 first tries to use (and autoload) class from current namespace and in case
107 A\B\foo() first tries to call function foo() from namespace A\B, then
108 it tries to find class A\B (__autoload() it if necessary) and call its
117 foo(); // first tries to call "foo" defined in namespace "A"
124 new B(); // first tries to create object of class "B" defined in namespace "A"
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"
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"
162 - calls to static methods are slower, because PHP first tries to look