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

BY Best Interview Question ON 20 Apr 2020