Bug #13518 Updated: sscanf don't like the next character following the field definition.

From: Date: Tue, 02 Oct 2001 21:31:39 +0000
Subject: Bug #13518 Updated: sscanf don't like the next character following the field definition.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67119@lists.php.net to get a copy of this message
ID: 13518 Updated by: mfischer Reported By: bomek@egeolog.com Old Status: Open Status: Bogus Bug Type: Strings related Operating System: Linux 2.4.9 (redhat 6.2) PHP Version: 4.0.6 New Comment: %s Matches a sequence of non-white-space characters. This is taken straight from the sscanf manual page. Although PHP has its own implemention, at this point they do match. If you have such simple things you might want to use explode(), split() and friends. Not a bug, bogusified. - Markus Previous Comments: ------------------------------------------------------------------------ [2001-10-02 14:32:27] bomek@egeolog.com $string = "aaa:bbb:ccc:ddd"; list($a,$b,$c,$d) = sscanf($string,"%s:%s:%s:%s"); print "$a,$b,$c,$d\n"; $string will be contained in $a instead of being splitted in $a,$b,$c,$d. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13518&edit=1

« previous php.dev (#67119) next »