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
Table of Contents
- Namespaces overview
- Defining namespaces
- Declaring sub-namespaces
- Defining multiple namespaces in the same file
- Using namespaces: Basics
- Namespaces and dynamic language features
- namespace keyword and __NAMESPACE__ constant
- Using namespaces: Aliasing/Importing
- Global space
- Using namespaces: fallback to global function/constant
- Name resolution rules
- FAQ: things you need to know about namespaces
Namespaces
thomas dot worm at gsp-software dot de
10-Dec-2008 03:55
10-Dec-2008 03:55
