<?php
$var1 = "Hello";
$var2 = "hello";
if (strcmp($var1, $var2) !== 0) {
echo '$var1 is not equal to $var2 in a case sensitive string comparison';
}
?>
//In php to compare two string we can use strcmp() function
Syntax
strcmp(string1,string2);
//If both string is same then it will return 0
<?php
echo strcmp("Hello world!","Hello world!");
?>
Code Example |
---|
Php :: set charset of response php |
Php :: import class route laravel |
Php :: php mysqli connection check |
Php :: what php can do |
Php :: how get file size in laravel |
Php :: php get size of file |
Php :: select case default php |
Php :: wp limit post revisions |
Php :: php artisan serve specify ip |
Php :: codeigniter get num_rows |
Php :: laravel rename column |
Php :: php image to base64 |
Php :: public laravel htaccess |
Php :: take 10 character from string using php |
Php :: php echo alert js |
Php :: using js variable in php |
Php :: php convert string to utf8 |
Php :: get_declared_classes |
Php :: put img in timestamp using php |
Php :: php is variable a number |
Php :: php newline |
Php :: how to get length of object in php |
Php :: get category name by id wordpress |
Php :: increase xampp phpmyadmin import limit |
Php :: php changr date format |
Php :: php alert |
Php :: laravel log permission denied mac |
Php :: pakistan time zone |
Php :: laravel dropIndex |
Php :: composer symfony/var-dumper |