Possible Duplicate:
Strict mode in PHP?
I am doing a big project in PHP. In PHP you do not need to declare variables. This is causing a lot of problems for me.
In Visual Basic 6, the Option Explicit statement makes it mandatory to declare variables. Is something similar available in PHP?
If you turn on E_NOTICE error messages, PHP will tell you about uninitialized variables:
ini_set("error_reporting", E_ALL);
Uninitialized is a little bit different than undeclared, but it should give you a similar effect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With