first case senstive php code example
Example 1: ucfirst
<?php
/* Convert the first character of "hello" to uppercase: */
echo ucfirst("hello samy!");
//output : Hello samy!
?>
Example 2: strcasecmp php
<?php
echo strcasecmp("Hello world!","HELLO WoRLD!");
?>
<p>If this function returns 0, the two strings are equal.</p>