note 81847 rejected from function.strtok by felipe
| From: | felipe@php.net | Date: | Sun, 16 Mar 2008 11:24:54 +0000 |
| Subject: | note 81847 rejected from function.strtok by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137097@lists.php.net to get a copy of this message | ||
Note Submitter: dudl at qq dot com
----
<?php
$first_token = strtok(' /something', '/');
$second_token = strtok('soth');
$a = strtok('');
var_dump($first_token,$second_token,$a);
?>
output
string(1) " " string(2) "me" string(4) "hing"
why don't it would be
string(1) " " string(2) "me" string(4) "ing"