Answers for "find char in string php"

PHP
1

php get char from string position

//You can use your string the same as an array :
$some_string = "apple";
echo $some_string[2]; //echo "p"
Posted by: Guest on July-12-2021
0

php find string in string

$pos = strpos("find the position of X in here", "X");
Posted by: Guest on March-16-2021

Browse Popular Code Answers by Language