PHP strpos() May 23, 2012 Pramod T P It finds the position of the first occurrence of a substring in a string Example <?php echo strpos(“phpcode”,”co”); ?> Output 3