PHP 5.3 Namespaces should i use every PHP function with backslash?

Posted by lhwparis on Stack Overflow See other posts from Stack Overflow or by lhwparis
Published on 2010-04-25T18:29:06Z Indexed on 2010/04/25 18:33 UTC
Read the original article Hit count: 165

Filed under:
|
|
|
|

Hi, im now using namespaces in PHP 5.3 now there is a fallback mechanism for functions which dont exist in the namespace. so php every time checks if the function exists in namespace and then tries to load it from global space.

So what about all php internal functions? strstr for example? Should i now use every php internal function with a \ ? to avoid php first checking the namespace? is this fallback a huge performance drop? what do you think?

© Stack Overflow or respective owner

Related posts about php

Related posts about namespaces