April 2026
Intermediate
1009 pages
34h 15m
English
Search and replace is one of the categories that does a text editor credit. Searching and replacing in strings does not usually have to be quite so sophisticated. Nevertheless, PHP offers a multitude of possibilities.
You have even more options with regular expressions. More on this follows in chapter 10.
The search functions differ in what they return. Is it the position of the string part found, or perhaps the remaining string from this position? The search functions are then subdivided in this section.[ 56 ]
The strpos(String, search_string, start) function is primarily responsible for searching for a position. It searches a string for the search_string[ 57 ] and returns the first ...
Read now
Unlock full access