Answers for "php check first character is +"

PHP
19

php get first character of string

$firstStringCharacter = substr("hello", 0, 1);
Posted by: Guest on October-19-2019
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 check first character is +"

Browse Popular Code Answers by Language