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