From a5b950133b4f5da76dba5da5e8de9c287150e2f2 Mon Sep 17 00:00:00 2001 From: Zak Greant Date: Sat, 5 Jan 2002 01:03:24 +0000 Subject: [PATCH] Extended strtok documentation to include information about multiple tokens git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66939 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/functions/strings.xml b/functions/strings.xml index 5c3cc83d66..ac5926874b 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -3386,16 +3386,19 @@ print $domain; // prints @designmultimedia.com - strtok is used to tokenize a string. That - is, if you have a string like "This is an example string" you + strtok splits a string (arg1) + into smaller strings (tokens), with each token being delimited by any + character from arg2. + That is, if you have a string like "This is an example string" you could tokenize this string into its individual words by using the space character as the token. <function>strtok</function> example "; $tok = strtok(" ");