note 122548 deleted from function.join by peehaa

From: Date: Sun, 28 Apr 2019 10:48:42 +0000
Subject: note 122548 deleted from function.join by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210813@lists.php.net to get a copy of this message
Note Submitter: aayush dot aryan7 at gmail dot com ---- The join function will operate only on values and not keys, if you want to include keys then need to manipulate the array to have keys data in the Value itself... What I mean: $array = array( 'red' => 'APPLE', 'yellow' => 'BANANA', 'orange' => 'ORANGE' ); echo (join(", ", $array)); Will output: APPLE, BANANA, ORANGE That does not contain the key information...

« previous php.notes (#210813) next »