Forums

PHP

This topic is locked

Option Explicit

Posted 23 years ago
1
has voted
23 years ago Paul Padilla posted:
What is the ASP equivalent "Option Explicit" in PHP?

Thank you,
Paul


Replies

Replied 23 years ago
23 years ago 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 23 years ago
23 years ago 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 23 years ago
23 years ago 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
tim@udzone.com
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