0

How do I make a singleton in PHP4? Is static available in PHP4?

Adrian Toman
  • 11,316
  • 5
  • 48
  • 62
  • Just as a note, PHP4 is deprecated and you should make serious efforts to upgrade your servers and code base to PHP5. – Andrew Moore Feb 21 '10 at 05:41

1 Answers1

2

Yes, singletons are possible. Here's how.

Eric J.
  • 147,927
  • 63
  • 340
  • 553