Jump to content

Recommended Posts

Not like that you couldn't. You need to define the class first and its alot of overhead for no gain really.

 

I should note that it does work with PHP 4.x, just tested.

 

I am unsure with PHP 5, so you could be right given the right version of PHP.

 

But that does work with PHP 4.

 

Whether or not it is considered "correct" or "good" programming I guess is something else...

Sorry frost, I take that back. Learn something everyday. Just tested it on 5.2.2 and yeah.. its works.

 

I could have swarn theat would have generated a 'method called on a non object' or whatever error that is.

 

I used to think that too, until one day I tried it out. My life has not been the same since ^.- =)

 

But as I stated, unsure if it is good programming or not, as PHP may decide that it should throw an error one day. But as far as I know it works and there is no less efficiency or anything and it works pretty nicely

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.