is it possible to create a singleton class in PHP 4?
Right now I have something like http://pastebin.com/4AgZhgAA which doesn’t even get parsed in PHP 4
What’s the minimum PHP version required to use a singleton like that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP4 and OOP === car without engine (:
It is possible but impractical.
Look this sample code: