g #$fiveCounter is at position - 0"; } //check the rest of the string for 5's while($offset = strpos($numberedString, "g", $offset + 1)){ $fiveCounter++; echo "
g #$fiveCounter is at position - $offset"; } //$fivePos = strpos($numberedString, "g"); //echo "The position of g in our string was $fivePos"; //$fivePos = strpos($numberedString, "g"); ?>