PHP Comparing Strings – String Function

<?
$word = 'baa';if ($word < 'baa') {
    print "Your word probably starts with 'A'.";
}
if ($word >= 'zoo') {
    print "Your word could be zoo or zymurgy, but not zone.";
}
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.