note 7841 added to array_keys

From: Date: Wed, 16 Aug 2000 23:56:04 +0000
Subject: note 7841 added to array_keys
Groups: php.notes 
Request: Send a blank email to php-notes+get-1989@lists.php.net to get a copy of this message
another short function function array_keys( $a, $v = false ) {  if( is_array( $a ) ) {   while( $r = each( $a ) ) {    if( ! $v || ( $v && $v == $v[1] ) )     array_push( $x, $r[0] );    }   }  return $x; } http://www.php.net/manual/de/function.array-keys.php

« previous php.notes (#1989) next »