Source Code:
(back to article)
<?php $string1 = "Hello World!"; $string2 = "Hello"; $result = substr_compare($string1, $string2, 0, strlen($string2)); echo $result;
Result:
Report an issue