AgerNic.com
Start write and run your php code online
HOME Editor | PHP Exemples | PHP Functions |
WEB TEMPLATES | EXAMPLES
PHP Tutorial
PHP strcmp() function, run and write PHP code.

PHP strcmp() function - online editor.

strcmp — Binary safe string comparison

Syntax:
strcmp ( string $str1 , string $str2 );
strstr — Returns < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.

Example 1 strcmp():

 <?php
echo strcmp("Hello America!","Hello America!");
echo"<br/>";

echo strcmp("Hello america!","Hello America!");
echo"<br/>";

echo strcmp("Hello America!","Hello america!");
?>


Tags:
PHP strcmp() function 27

PHP strcmp() function

PHP Functons
PHP count() Function

PHP define() function

PHP empty() Function

PHP explode() function

PHP html_entity_decode() function

PHP htmlentities() function

PHP htmlspecialchars_decode() function

PHP htmlspecialchars() function

PHP implode() function

PHP isset() Function

PHP lcfirst() function

PHP ltrim() function

PHP md5() function

PHP print() function

PHP printf() function

PHP rtrim() function

PHP similar_text() function

PHP str_repeat() function

PHP str_replace() function

PHP str_split() function

PHP strcmp() function

PHP strip_tags() function

PHP strlen online function

PHP strrchr() Function

PHP strstr() function

PHP strtolower() function

PHP strtoupper() function

PHP substr() function

PHP trim() function

PHP ucfirst() function