Php endless loop over and over?
<pre><code>&lt;?php

$offset = 0;
$find = "is";
$find_length = strlen($find);
$string = "This is a string, and it is an example.";

while($string_position = strpos($string, $find, $offset)){

echo $find. " Found at ". $string_position ."&lt;br&gt;";
$offset = string_position + find_length;

}


?&gt;
</code></pre>

<p>keeping getting "is Found at 2" over and over . i am expecting " is found at 2", then  5, then 25</p>
