You are here: Re: is there a php editor of developer environment that asks for variables to be declared? « PHP Programming Language « IT news, forums, messages
Re: is there a php editor of developer environment that asks for variables to be declared?

Posted by rich on 10/26/05 01:17

In article <1129384888.748848.184590@g47g2000cwa.googlegroups.com>,
lkrubner@geocities.com says...
>
>
>PHP does not ask developers to declare their variables. You can simply
>create a variable on the fly. That is nice for small scripts and a
>headache for large projects. Is there editor out there that enforces a
>kind of strict mode? I don't need full variable typing, I just want an
>editor that makes me declare all variable - at the very least I'd like
>to be able to catch spelling errors.
>

I wish PHP had the "use strict" mode that Perl has. I've gotten accustomed to
weeding out typos and goofy errors that take a little longer to debug now. Maybe
it was too much of a crutch. I still catch myself starting with "my $var =... ".
Maybe there's a settings in the php.ini file to output more information to the
web error log, but wasn't seeing anything obvious.

Rich
--
Newsguy -- http://newsguy.com

 

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

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