I know this is probably very simple, but I can't figure it out. I've tried it with a WHILE and a DO loop, and can't get it to work.
$string = "This is a test. This is only a test. Testing 123";
$position = strpos($string,"test");
if ($position !== false) {
// processes
// more processing
}
How do I keep this loop going until I've gone through the string? I know this is incredibly simple, but I'm stuck.
$string = "This is a test. This is only a test. Testing 123";
$position = strpos($string,"test");
if ($position !== false) {
// processes
// more processing
}
How do I keep this loop going until I've gone through the string? I know this is incredibly simple, but I'm stuck.