Answers for "php find first occurrence in string"

PHP
0

php find first occurrence in string

#You can use the strpos() function 

$cheese = "cheese";

strpos($cheese, 'h');

#Output: 1
Posted by: Guest on May-29-2021

Code answers related to "php find first occurrence in string"

Browse Popular Code Answers by Language