Object of class stdClass could not be converted to string

Object of class stdClass could not be converted to string

am 01.12.2009 06:27:05 von John Taylor-Johnston

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 " $mydata->2010\n";
echo " $mydata->2009\n";

Is this something new in PHP? Geez.
John

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

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

am 01.12.2009 08:16:04 von LinuxManMikeC

On Mon, Nov 30, 2009 at 10:27 PM, John Taylor-Johnston
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=3Dstringtoint like I
> might of in Delphi :)p
>
>    echo " $mydata->2010\n";
>    echo " $mydata->2009\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#langu age.types.strin=
g.parsing.complex

Ever consider actually learning the language?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php