ID: 13518 Updated by: mfischer Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] $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 -- 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]