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 lkrubner on 10/25/05 23:58

> > Good to know. So if I set it to E_ALL, PHP will want me to
>>write this
> > line:
> > var $myHtmlString = "";
> > before I start using the variable $myHtmlString?

> BTW, I don't think you need such feature. If you use a variable
> without having a value in it, it's an error; and you have to correct
> it. If you just want to fill it with empty text or null, as somone
> said, you set your error level to low.

I'm not sure I understand you. I want to declare my variables before
they are used. I'd like an IDE that enforces it. I might declare a
variable like this:

var $isFlagSet = false;

and then later I might have an if() test like this:

if ($ifFlagSet) {
echo "success";
} else {
echo "sorry, there was an error";
}

 

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

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