note 113929 deleted from function.strpos by cmb

From: Date: Sun, 02 Jun 2019 08:02:25 +0000
Subject: note 113929 deleted from function.strpos by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211167@lists.php.net to get a copy of this message
Note Submitter: harshitpatelrock25 at gmail dot com ---- 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; } ?>

« previous php.notes (#211167) next »