Forums

PHP

This topic is locked

Option Explicit

Posted 11 Feb 2002 00:13:27
1
has voted
11 Feb 2002 00:13:27 Paul Padilla posted:
What is the ASP equivalent "Option Explicit" in PHP?

Thank you,
Paul


Replies

Replied 11 Feb 2002 14:08:03
11 Feb 2002 14:08:03 Bruno Mairlot replied:
Maybe, if you explain what is 'Option Explicit' supposed to do in ASP, we can help you...

Bruno

--- Better to die trying, than never try at all ---
Replied 11 Feb 2002 22:19:44
11 Feb 2002 22:19:44 Paul Padilla replied:
It is what you set to force all variables to be declared. I need to know what is the equivalent in PHP

Regards,
Paul

Replied 12 Feb 2002 15:00:59
12 Feb 2002 15:00:59 Tim Green replied:
There is no equivalent in PHP to Option Explicit due to the way that PHP handles variables.

The only way you could 'simulate' this kind of thing would be to edit your PHP.ini error_reporting setting to E_ALL.

I wouldn't recommend this, though, as most PHP scripts will assume that you are running without this, and it will cause you problems with EVERY PHP Behavior for UltraDev.

Anyway, I hope this helps.



Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic