note 11294 added to strtok

From: Date: Wed, 14 Feb 2001 16:12:47 +0000
Subject: note 11294 added to strtok
Groups: php.notes 
Request: Send a blank email to php-notes+get-11049@lists.php.net to get a copy of this message
As 'mckay' wrote, strtok 2nd argument is a list of tokens, not a string delimiter. It's not so obvious as one may think and it may be confusing for beginners like me. So, in the docs, it should state sth. like that strtok(string where2search, char token2cut). And for the above split-lover =) 'tysonlt' -> it's better to use explode bcoz it's lighter than split (to quote original manual: "(...) use explode(), which doesn't incur the overhead of the regular expression engine") regards, StarLight http://www.php.net/manual/en/function.strtok.php

« previous php.notes (#11049) next »