note 113929 added to function.strpos
| From: | harshitpatelrock25 at gmail dot com | Date: | Wed, 18 Dec 2013 10:29:22 +0000 |
| Subject: | note 113929 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197971@lists.php.net to get a copy of this message | ||
TO find the position specific word in a para:-
<?php
$String = 'This is the php language And is Used to develop web programs';
$find = '1232';
$find_leg = strlen($find);
$start_pos = 00;
while($string_pos = strpos($String,$find,$start_pos)){
echo "<strong> \" $find \" </strong> was found on position :
$string_pos <br>" ;
$start_pos = $string_pos + $find_leg;
}
?>
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/113929
Del: integrated -- https://master.php.net/note/delete/113929/integrated
Del: useless -- https://master.php.net/note/delete/113929/useless
Del: bad code -- https://master.php.net/note/delete/113929/bad+code
Del: spam -- https://master.php.net/note/delete/113929/spam
Del: non-english -- https://master.php.net/note/delete/113929/non-english
Del: in docs -- https://master.php.net/note/delete/113929/in+docs
Del: other reasons-- https://master.php.net/note/delete/113929
Reject -- https://master.php.net/note/reject/113929
Search -- https://master.php.net/manage/user-notes.php