Web Technology II20805 marksString comparison and approximate equality
How is the approximate equality of two strings done in PHP? Write a program to demonstrate it.
How is the approximate equality of two strings done in PHP? Write a program to demonstrate it. [5]
In PHP, approximate equality of two strings is performed using the double equals operator (==) with type juggling, or more specifically, the concept of approximate/loose comparison. However, for string similarity/approximate matching, PHP provides the built-in function: The most common approaches...