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

Posted by Phil on 09/26/19 11:37

In article <yO6zf.2645$wl.2590@text.news.blueyonder.co.uk>, d says...
>
>"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
>
>:)
>
>

Thanks for the tip d. I've been spoiled with Perl's "use strict" also and it's
nice to have some alternatives other than the error_log() function.

Phil
--
Newsguy Bandwidth Blowout 01-25-2006
http://newsguy.com/nolimits.htm

 

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

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