Answers for "find the first index of substring in a string php"

PHP
19

php get first character of string

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

find index of a character in a string php

<?php
echo strpos("I love php, I love php too!","php");
?>
Posted by: Guest on May-23-2021

Code answers related to "find the first index of substring in a string php"

Browse Popular Code Answers by Language