Answers for "php get char from string"

PHP
14

php get first character of string

$firstStringCharacter = substr("hello", 0, 1);
Posted by: Guest on October-19-2019
2

php insert character into string

$newstr = substr_replace($oldstr, $str_to_insert, $pos, 0);
Posted by: Guest on June-04-2020

Browse Popular Code Answers by Language