PHP Lesson 19: Search and replace strpos(), strlen(), str_replace(), str_ireplace()

With PHP you can also search texts, and replace certain characters/words with another text. If you want to check if some text is contained in another text, you can use the function strpos($text, $searchtext) at. This returns the position of the first occurrence if the searched text exists. If the text does not exist, false is returned. <?Php $text = "This [...]

Read More