You are here: Re: Var in PHP 5 question « PHP Programming Language « IT news, forums, messages
Re: Var in PHP 5 question

Posted by Tony Marston on 07/25/05 12:10

In PHP 5 this is reported as a warning, not an error, so it will still run
OK. I know because I have encountered the same situation with code that I
use which needs to run under both PHP 4 and PHP 5.

--
Tony Marston

http://www.tonymarston.net



<pfrank26@hotmail.com> wrote in message
news:1122210124.890096.86560@g44g2000cwa.googlegroups.com...
> Hi all,
> I've written a large system for PHP4 that declares class variables
> using the 'var' keyword. I'm now upgrading to PHP5, and it seems I have
> to change 'var' to private / public / protected, which don't work in
> PHP4. Is there anyway to make my system compatible with both versions?
>
> Cheers,
> Paul.
>

 

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

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