You are here: Re: Explicit declaration of variables « PHP Programming Language « IT news, forums, messages
Re: Explicit declaration of variables

Posted by d on 09/26/90 11:37

"magilla" <jim.richardson@jax.org> wrote in message
news:1137506263.350278.111170@g47g2000cwa.googlegroups.com...
> I'm a old timer programmer (assembler, fortran, pascal, C) and now
> converting from PERL to PHP. In PERL I always use the "use strict" to
> force warning messages of undeclared variables. I haven't been able to
> find anything similar in PHP, is there such an option? When you type
> as bad as I do, having the PHP interpretor/compiler find misspelled
> variable names expedites the debugging process.
>
> Magilla...
>

If you turn your error reporting on:

http://uk.php.net/error_reporting

It will indeed give you helpful messages like:

Notice: Undefined variable: somethin in /blah/woo/waah.php

:)

 

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

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