2080 4

BIT301 ยท 2080 ยท 5 marks

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]

Web Technology IIChapter 5: String Processing and Regular ExpressionsString comparison and approximate equality

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...