- strcmp: documentation ( source)
<?php
$test1 = "Test".NULL."ing";
$test2 = "Testing";
if(strcmp($test1, $test2) == 0){
echo "The strings are the same";
}
else{
echo "They are different.";
}
if(strcmp($test2, $test1) == 0){
echo "The strings are the same";
}
else{
echo "They are different.";
}