How to extract strings that do not meet the conditions in php
echo
echo 2020-10-26 15:16:45
0
1
983

As shown in the picture:

QQ图片20201026150628.png

After the code in the picture is executed, the type of $result must be false. Because $a is not greater than $b.

The current requirement is that the value of $string is an expression filled in by the user (the format is irregular), and then I will judge whether the result of the expression he filled in is true. If the result is false, let the program tell the user the incorrect form output alone.

Just like the picture above, I want the program to output, because $a>$b is not true, so the result is false. How to achieve

echo
echo

reply all(1)
灭绝师太

Backend return json_encode(['status'=>0,'msg'=>'$a>$b is not established, so the result is false']); The front-end js receives and then alert() is given to the user. Enough.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!