How to get the position of the character in a string in php?
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
To find the position of a character inside a string in PHP, use the strpos() function in the following way:
$pos = strpos($string, $char);