|
Posted by J.O. Aho on 03/09/07 13:44
Rik wrote:
> J.O. Aho <user@example.net> wrote:
>> if(_MYSQL_CLASS) { return; }
>> define(_MYSQL_CLASS,true);
>
> Hmmmz, allthough a cluttering of constants, a bit more elegant indeed.
> I'd use defined(_MYSQL_CLASS) though, else it will never ever create an
> object for you if not previously defined to false :P
You are so right, didn't think of that, don't use define that much myself and
those times I do, it's usually a string that I want to output.
--
//Aho
Navigation:
[Reply to this message]
|