RE: [PHP] alphabetic comparison
| From: | Jesse Castro | Date: | Thu, 30 Sep 2004 16:42:09 +0000 |
| Subject: | RE: [PHP] alphabetic comparison | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-198302@lists.php.net to get a copy of this message | ||
[snip]
Is there any way you can use the numerical comparisons < or > to see if
one
word comes first alphabetically to another ?
what can I use to see if
"oranges" comes after or before "apples" alphabetically for instance.
[/snip]
**mumble grumble**
You should just try dinky questions like this out for yourself...
Try this code:
<?
if ("apples" > "oranges" )
{
echo "apples";
}else{
echo "oranges";
}
?>