[OWASP_PHPSEC] Namespace

rahul chaudhary rahul300chaudhary400 at gmail.com
Sun Jul 28 10:10:37 UTC 2013


Hello All,

I have this weird doubt...basic doubt.

So two files that share a namespace, do they also share functions defined
under that namespace ?

e.g.:
time.php defines function time() in namespace phpsec

now in another file say testTime.php which is in same namespace, phpsec,
can't I directly use this time function using \phpsec\time(). Do, I have to
first use require_once("time.php") to call this function \phpsec\time()

-- 
Regards,
Rahul Chaudhary
Ph - 412-519-9634
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130728/47aa3cdd/attachment.html>


More information about the OWASP_PHP_Security_Project mailing list