|
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]
|