Using strcasecmp to compare two strings : strcasecmp « String « PHP
- PHP
- String
- strcasecmp
Using strcasecmp to compare two strings
<?php
$name1 = "Bill";
$name2 = "BILL";
$result = strcasecmp($name1, $name2);
if (!$result){
echo "They match.";
}
?>
Related examples in the same category