Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

strpos in php


<?php
// We can search for the character, ignoring anything before the offset
$newstring = 'abcdef abcdef';
$pos = strpos($newstring, 'a', 1); // $pos = 7, not 0
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #strpos #php
ADD COMMENT
Topic
Name
8+3 =