String Functions
PHP provides many built-in functions for working with strings.
Common string functions include:
strlen()strpos()substr()str_replace()
Example
Section titled “Example”$text = "Hello World";
echo strlen($text);Finding position of a substring
Section titled “Finding position of a substring”echo strpos("Hello World", "World");