PHP 5.3 and '::'

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-04-27T01:30:44Z Indexed on 2010/04/27 1:33 UTC
Read the original article Hit count: 277

Filed under:

Hello,

I started into PHP with 5.3 and am using the '::' to access constants ex; class::const. However, when I try to use my code in an older PHP namely 5.1.6 and 5.2.12, I get an error that the '::' is unexpected.

How do I access constants in these older versions of PHP5?

© Stack Overflow or respective owner

Related posts about php