php start string at index 3 code example
Example 1: if part of stringp ph
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
Example 2: php get first character of string
$firstStringCharacter = substr("hello", 0, 1);
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
$firstStringCharacter = substr("hello", 0, 1);