1//In php to compare two string we can use strcmp() function
2Syntax
3strcmp(string1,string2);
4
5//If both string is same then it will return 0
6<?php
7echo strcmp("Hello world!","Hello world!");
8?>
1// This function is used to find whether two strings are same or not.
2// Syntax
3strcmp(string1,string2);
4// It returns
5// 0 if string1 and string2 are same
6// less than zero if string1 is smaller than string2
7// greater than zero if string1 is greater than string2
8