the only thing i know about this subject is…
in PHP 5, when a variable used without assigned any value, then it a warning will be shown.
Is there any other difference between this 2 different version ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no general difference between variables in PHP 4 and 5.
What you are probably referring to is the ´E_NOTICE` error reporting level. When that level is turned on, PHP will complain if a variable is used that hasn’t been assigned yet. That level existed in PHP 4 already:
PHP’s error reporting can be influenced through the “error_reporting” php.ini setting, or during runtime of the script using the
error_reporting()function.As for other differences, there’s a load of them. Check out Gordon’s link about Migrating from PHP 4 to 5.