Answers for "how to compare string values with each values in php"

PHP
2

php compare string

<?php
$var1 = "Hello";
$var2 = "hello";
if (strcmp($var1, $var2) !== 0) {
    echo '$var1 is not equal to $var2 in a case sensitive string comparison';
}
?>
Posted by: Guest on December-02-2020

Code answers related to "how to compare string values with each values in php"

Browse Popular Code Answers by Language