I am looking for function which does this option:
preg_match("/^{$STRING}/i", ...)
but, without regular expression, and there must be the ^ in the first, which means that this expression will be false:
$search = "hi", $search_in "ahi";
it must be at the start of the string.
Not sure I understood your request well… But… Try this:
Please note that you need to use 3
=signs, because the function will return false when there is no match in the string.