<?php $ddd=22; ?><?phpif ($row['ddd']>11) { echo "222";} else { echo "111";}?>you OK, brother, I want to display 222 if ddd>11, how to write it. Ask for advice.
If comparing strings, the basis is the size of the ASCII code value of the characters from left to right in the string
And who knows what your $row['zt'] is? , I wrote two pieces of unrelated code. If I run it directly, I will definitely get an error of undefined variable
That’s it
<?php $ddd=22; ?><?phpif ($row['ddd']>11) { echo "222";} else { echo "111";}?>you OK, brother, I want to display 222 if ddd>11, how to write it. Ask for advice.
Your idea is weird, why is it the string "0"?
If comparing strings, the basis is the size of the ASCII code value of the characters from left to right in the string
And who knows what your $row['zt'] is? , I wrote two pieces of unrelated code. If I run it directly, I will definitely get an error of undefined variable