Source Code:
(back to article)
<?php $string = "Hello World! How are you?"; $delimiter = " !?"; $token = strtok($string, $delimiter); while ($token !== false) { echo "$token" . "\n"; $token = strtok($delimiter); }
Result:
Report an issue