note 99187 deleted from function.array-keys by danbrown

From: Date: Sun, 01 Aug 2010 23:21:32 +0000
Subject: note 99187 deleted from function.array-keys by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171325@lists.php.net to get a copy of this message
Note Submitter: halbesbit at halbesbit dot de ---- <?php $array = array('a' => 0, 'b' => 1, 'c' => 2, 'd' => 3); $true['true'] = array_keys( $array, true); $false['false'] = array_keys( $array, false); echo '<pre>'; print_r(array_merge( $true, $false )); echo '</pre>'; ?> output: Array ( [true] => Array ( [0] => b [1] => c [2] => d ) [false] => Array ( [0] => a ) )

« previous php.notes (#171325) next »