$pos = strpos("find the position of X in here", "X");
pos = strpos($current_url, "workspace/detail/live-streaming/service")
=> if pos > 0 found with the current position pos
=> if pos < 0 not found
=> if pos = 0 => found with current position = 0;
$a = 'How are you?';
$search = 'are y';
if(preg_match("/{$search}/i", $a)) {
echo 'true';
}