hi,
preg_match:
imagine you have a string "hello world", and search for the substring "world" via preg_match. how can I found out the location where the substring was found?
The result of the string above should be 7, because "world" begins with character number 7.
My goal is to show a small portion of a big string around a matched substring.
bye
Chris
preg_match:
imagine you have a string "hello world", and search for the substring "world" via preg_match. how can I found out the location where the substring was found?
The result of the string above should be 7, because "world" begins with character number 7.
My goal is to show a small portion of a big string around a matched substring.
bye
Chris