-1

For example str1 = "hello world",str2 = "hello wordl",they have the same length,but are not same

2 Answers2

3

You can use levenshtein.

If (levenshtein($str1,$str2)===0){ // identical}
cpugourou
  • 767
  • 7
  • 11
0

Yes It is possible. you can use strcmp for string comparison.

Saani
  • 858
  • 5
  • 25
  • 58