Home of web learners


PHP has regular expression to make a search in string

Lets start with an example:

$text "webn3rd";

Here,you see that,we have two things,first test is for which we are searching for and next text where we are searching.

Here,in preg_match_all we use this to find all matches character in our text,in this example we find only one e,so outpur is 1


About webn3rd