php find index of key in string code example Example: find index of a character in a string php <?php echo strpos("I love php, I love php too!","php"); ?>