Bug #1466: join() uses ghost elements of an array

From: Date: Sat, 29 May 1999 12:20:00 +0000
Subject: Bug #1466: join() uses ghost elements of an array
Groups: php.dev 
Request: Send a blank email to php-dev+get-6244@lists.php.net to get a copy of this message
From: bakksjo@stud.ntnu.no Operating system: Linux PHP version: 3.0.6 PHP Bug Type: Misbehaving function Bug description: join() uses ghost elements of an array The following code fragment: -------------------- $array[0] = "something"; $array[1] = "strange"; $array[2] = "here"; unset($array[1]); echo "count: " . count($array) . "<br>\n"; echo join($array,":"); -------------------- Produces the following output: -------------------- count: 2 something::here -------------------- There shouldn't be more than one colon, right? Or how should I otherwise get completely rid of an element in an array? -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#6244) next »