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

search for in the

Namespaces overview> <Object Serialization
Last updated: Fri, 26 Feb 2010

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 09:55
Is there any good way for doing backward compatibility of code, like:

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

This tells me a

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

Namespaces overview> <Object Serialization
Last updated: Fri, 26 Feb 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites