[PHP-DEV] Bug #14714 Updated: String tokenizer appears to only work with tokens of size equal to one.
ID: 14714 Updated by: elixer Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Strings related Operating System: linux redhat 7.0 PHP Version: 4.1.0 New Comment: Please create a php file with the following content, the version number of PHP will appear in the output: ?php phpinfo(); ? Let us know what version you are on. Sean Previous Comments: [2001-12-27 02:35:26] [EMAIL PROTECTED] This code does not appear to work (it is almost a cut and paste from the manual with the token changed). From experimentation I think it is beacause the token is two characters long. I am not sure if this is a bug or a undocumented property of this function. $string = This is an example string; $tok = strtok($string,%s); while ($tok) { echo Word=$tokbr; $tok = strtok(%s); } I am sorry I can't be sure of the version of PHP on this server. I only have ftp access. Thanks for such a great product! Edit this bug report at http://bugs.php.net/?id=14714edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14714 Updated: String tokenizer appears to only work with tokens of size equal to one.
ID: 14714 Updated by: zak Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Old Bug Type: Strings related Bug Type: Documentation problem Operating System: linux redhat 7.0 PHP Version: 4.1.0 New Comment: strtok splits a string into tokens, each token delimited by any character from the token string. Changing to documentation problem. Will fix shortly. Previous Comments: [2002-01-04 19:03:34] [EMAIL PROTECTED] Please create a php file with the following content, the version number of PHP will appear in the output: ?php phpinfo(); ? Let us know what version you are on. Sean [2001-12-27 02:35:26] [EMAIL PROTECTED] This code does not appear to work (it is almost a cut and paste from the manual with the token changed). From experimentation I think it is beacause the token is two characters long. I am not sure if this is a bug or a undocumented property of this function. $string = This is an example string; $tok = strtok($string,%s); while ($tok) { echo Word=$tokbr; $tok = strtok(%s); } I am sorry I can't be sure of the version of PHP on this server. I only have ftp access. Thanks for such a great product! Edit this bug report at http://bugs.php.net/?id=14714edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14714 Updated: String tokenizer appears to only work with tokens of size equal to one.
ID: 14714 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Documentation problem Operating System: linux redhat 7.0 PHP Version: 4.1.0 New Comment: Thanks for that. I ended up using explode() to do what I wanted. A user comment directed me to do this. Thanks for all your help! David Previous Comments: [2002-01-04 19:54:48] [EMAIL PROTECTED] strtok splits a string into tokens, each token delimited by any character from the token string. Changing to documentation problem. Will fix shortly. [2002-01-04 19:03:34] [EMAIL PROTECTED] Please create a php file with the following content, the version number of PHP will appear in the output: ?php phpinfo(); ? Let us know what version you are on. Sean [2001-12-27 02:35:26] [EMAIL PROTECTED] This code does not appear to work (it is almost a cut and paste from the manual with the token changed). From experimentation I think it is beacause the token is two characters long. I am not sure if this is a bug or a undocumented property of this function. $string = This is an example string; $tok = strtok($string,%s); while ($tok) { echo Word=$tokbr; $tok = strtok(%s); } I am sorry I can't be sure of the version of PHP on this server. I only have ftp access. Thanks for such a great product! Edit this bug report at http://bugs.php.net/?id=14714edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]