Answers for "how to find a character in a string in php"

PHP
1

php needle haystack

//Find the position of the first occurrence of a substring in a string
$mystring = 'abc';
$findme   = 'a';
$pos = strpos($mystring, $findme);
Posted by: Guest on May-08-2020

Code answers related to "how to find a character in a string in php"

Browse Popular Code Answers by Language