On Wed, June 14, 2006 1:08 pm, Mariano Guadagnini wrote:
I hace an existencial doubt: i've seem many scripts declaring classes
as
stdClass. In the documentation (for PHP5 and also for 4), it says that
this class is internal of php, and should't be used. By the manner I
saw
it's being used, i
On Wed, June 14, 2006 1:26 pm, D. Dante Lorenso wrote:
Mariano Guadagnini wrote:
Hi list,
I hace an existencial doubt: i've seem many scripts declaring
classes
as stdClass. In the documentation (for PHP5 and also for 4), it says
that this class is internal of php, and should't be used. By
Hi list,
I hace an existencial doubt: i've seem many scripts declaring classes as
stdClass. In the documentation (for PHP5 and also for 4), it says that
this class is internal of php, and should't be used. By the manner I saw
it's being used, i guess that it can be handy to create a 'generic'
Mariano Guadagnini wrote:
Hi list,
I hace an existencial doubt: i've seem many scripts declaring classes
as stdClass. In the documentation (for PHP5 and also for 4), it says
that this class is internal of php, and should't be used. By the
manner I saw it's being used, i guess that it can be
To answer both of you:
$var = new stdClass();
is perfectly acceptable. I do it all the time. The caveat is that the
behavior is slightly different in PHP 4 than PHP 5.
In PHP 4, $var would behave exactly like an associative array, just with
different funky characters to access its
5 matches
Mail list logo