note 68041 added to function.array-flip

From: Date: Tue, 11 Jul 2006 12:51:32 +0000
Subject: note 68041 added to function.array-flip
Groups: php.notes 
Request: Send a blank email to php-notes+get-114670@lists.php.net to get a copy of this message
Possible structure of this function: Note: __CALLED_BY_FILE__ and __CALLED_ON_LINE__ are not real constants. <? function array_flip($array) { $return_array = array(); foreach ($array AS $key => $value) { if (is_string($value) || is_int($value)) { $return_array[$value] = $key; } else { echo '<p><b>Warning:</b> array_flip(): Can only flip STRING and INTEGER values! in <b>'. __CALLED_BY_FILE__ .'</b> on line <b>'. __CALLED_ON_LINE__ .'</b></p>'; } } return $return_array; } ?> ---- Server IP: 216.194.113.175 Probable Submitter: 71.35.197.135 ---- X-Spam-Status: No, hits=4.0 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE,UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.array-flip.php Edit -- http://master.php.net/note/edit/68041 Del: integrated -- http://master.php.net/note/delete/68041/integrated Del: useless -- http://master.php.net/note/delete/68041/useless Del: bad code -- http://master.php.net/note/delete/68041/bad+code Del: spam -- http://master.php.net/note/delete/68041/spam Del: non-english -- http://master.php.net/note/delete/68041/non-english Del: in docs -- http://master.php.net/note/delete/68041/in+docs Del: other reasons-- http://master.php.net/note/delete/68041 Reject -- http://master.php.net/note/reject/68041 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114670) next »