Weirdness in var_dump() code

From: Date: Fri, 09 Jun 2000 14:44:21 +0000
Subject: Weirdness in var_dump() code
Groups: php.dev 
Request: Send a blank email to php-dev+get-20760@lists.php.net to get a copy of this message
Can someone explain the logic behind: i = sprintf(buf, "%*c%sbool(%s)\n", COMMON, ((*struc)->value.lval?"true":"false")); PHPWRITE(&buf[1], i - 1); Why do we need to start printing at buf+1? Why not just print out level-1 spaces, with ensuring it doesn't go under zero? Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#20760) next »