Which statement puzzles you exactly?
Regarding the last one:
> If you compare a number with a string or the comparison involves numerical
strings, then each string is
converted to a number
and the comparison performed numerically.
Janis
svētd., 2020. g. 5. apr., plkst. 09:38 — lietotājs Jeremy O'Connor (<jeremyo@xxxxxxxxxxxxxx>) rakstīja:
Looking at the following code
echo ('') ? 'T' : 'F';
echo ('!') ? 'T' : 'F';
echo (0) ? 'T' : 'F';
echo ('' == 0) ? 'T' : 'F';
echo ('!' == 0) ? 'T' : 'F';
the output is:
FTFTT
Is this behavior to be expected?
--
Jeremy O'Connor