Answers for "how to check first two character in php"

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
0

get only the first two word from a string php

$message = preg_split('/[s,]+/', $message, 3)
Posted by: Guest on August-06-2020

Code answers related to "how to check first two character in php"

Browse Popular Code Answers by Language