PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Namespaces overview> <Objects and references
Last updated: Fri, 02 Jan 2009

view this page in

Namespaces

Table of Contents



add a note add a note User Contributed Notes
Namespaces
thomas dot worm at gsp-software dot de
10-Dec-2008 03:55
Is there any good way for doing backward compatibility of code, like:

<?php
if ( (float) substr(phpversion(),0,3) >= 5.3)
namespace MySpaceSubSpace;
?>

This tells me a

Parse error: parse error, expecting `T_NS_SEPARATOR' in space.lib.php on line 3

Namespaces overview> <Objects and references
Last updated: Fri, 02 Jan 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites