$first_token = strtok( '/ something',' / '); $second_token = strtok(' / '); var_dump ($first_token, $second_token); / * Output: string(9) "something "bool(false) * /
$first_token = strtok( '/ chose',' / '); $second_token = strtok(' / '); var_dump ($first_token, $second_token); / * Affiche: string(9) "chose "bool(false) * /