Re: Object of class stdClass could not be converted to string

From: Date: Tue, 01 Dec 2009 07:16:04 +0000
Subject: Re: Object of class stdClass could not be converted to string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-300170@lists.php.net to get a copy of this message
On Mon, Nov 30, 2009 at 10:27 PM, John Taylor-Johnston <jt.johnston@usherbrooke.ca> wrote: > Good grief. It doesn't like printing an INT field like as if it were a > string?? > > I looked at: > http://php.ca/manual-lookup.php?pattern=stringtoint like I > might of in Delphi :)p > >    echo " <td>$mydata->2010</td>\n"; >    echo " <td>$mydata->2009</td>\n"; > > Is this something new in PHP? Geez. > John > http://www.php.net/manual/en/language.variables.basics.php http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex Ever consider actually learning the language?

« previous php.general (#300170) next »