PHP/FI 2.0 used the left side of expressions to determine what type
the result should be. PHP 3.0 takes both sides into account when
determining result types, and this may cause 2.0 scripts to behave
unexpectedly in 3.0.
In PHP/FI 2.0, this would display both of $a's indices. In PHP
3.0, it wouldn't display anything. The reason is that in PHP 2.0,
because the left argument's type was string, a string comparison
was made, and indeed "" does not equal
"0", and the loop went through. In PHP 3.0,
when a string is compared with an integer, an integer comparison is
made (the string is converted to an integer). This results in
comparing atoi("") which is
0, and variablelist which is
also 0, and since 0==0, the
loop doesn't go through even once.
The fix for this is simple. Replace the while statement with:
while ((string)$key != "") {
Php migration.expr Function syntax tag
migration.expr php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php migration.expr syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.