You are here: Re: Question of PHP-4 vs PHP-5 « PHP Programming Language « IT news, forums, messages
Re: Question of PHP-4 vs PHP-5

Posted by tony on 10/20/48 11:47

In article <2MN8g.18665$mX1.5242@newsfe2-gui.ntli.net>,
colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com says...
> tony@tony.com wrote:
>
> >
> > When debugging the blowfish utility I noticed that
> >
> > $bf = new Crypt_Blowfish($mykey);
> > echo("BF: " . $bf");
> >
> > Outputs the word "OBJECT" on a PHP-4 linux system
> >
> > and "OBJECT id #1" on a windoze PHP-5 system
> >
> > Can anyone confirm this is correct and even better -
> > explain what the output of each is please
> > (I dont understand PHP classes yet)
>
> Yes, both are correct, but the question is wrong - if you want to describe
> an object then give it a method to describe itself. If you want to see
> inside an object then use the var_export() fn.
>
> The difference is related to the change in how objects are referenced in the
> different PHP versions.
>
> C.
>

Thats good to know thanks.

tony

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация