How do you compare two integers in php?
I have tried
print (1 > 2); // No output
$a = 1;
$b = 2;
$c = ($a > $b) ? true : false;
print ($c); // No output
var_dump works fine. I have the latest PHP installed.
Both of your comparisons return false
which will not print out a value.
<?php
echo true;
echo false;
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