note 103972 deleted from function.array-flip by thiago

From: Date: Mon, 23 May 2011 14:13:51 +0000
Subject: note 103972 deleted from function.array-flip by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179965@lists.php.net to get a copy of this message
Note Submitter: omnibus at omnibus dot edu dot pl ---- Note that array_flip() does not work well with a non-associative array containing integers. I thought that array(0=>1, 1=>2), built without explicit definition of keys (defined like: $array[] = 1; $array[] = 2;), will be flipped to array(1=>0, 2=>1). Instead, I received some warnings.

« previous php.notes (#179965) next »