Strategy to rename the require_once function?

Posted by openfrog on Stack Overflow See other posts from Stack Overflow or by openfrog
Published on 2009-12-31T22:00:19Z Indexed on 2010/04/01 5:53 UTC
Read the original article Hit count: 214

Filed under:

Rather than just writing a new function called import() i'd like to know if there's a better solution. Otherwise require_once would be included in the scope of import() only, which is bad for any "global" variable there.

My import() function would work differently than require_once, but serves the same purpose (enhanced usability).

© Stack Overflow or respective owner

Related posts about php