To find the position of a character inside a string in PHP, use the strpos() function in the following way:
$pos = strpos($string, $char);

Suggest An Answer

No suggestions Available!