These values are compared using dictionary order : Comparison Operators « Operator « PHP
- PHP
- Operator
- Comparison Operators
These values are compared using dictionary order
if ('6 p' < '55 c') {
print '"6 p" is less than than the string "55 c".';
} else {
print '"6 p" is not less than the string "55 c".';
}
Related examples in the same category