note 115215 added to function.array-replace
| From: | kyberprizrak | Date: | Sun, 15 Jun 2014 13:08:14 +0000 |
| Subject: | note 115215 added to function.array-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199680@lists.php.net to get a copy of this message | ||
if(!function_exists('array_replace'))
{
function array_replace()
{
$args = func_get_args();
$num_args = func_num_args();
$res = array();
for($i=0; $i<$num_args; $i++)
{
if(is_array($args[$i]))
{
foreach($args[$i] as $key => $val)
{
$res[$key] = $val;
}
}
else
{
trigger_error(__FUNCTION__ .'(): Argument #'.($i+1).' is not an array',
E_USER_WARNING);
return NULL;
}
}
return $res;
}
}
----
Server IP: 195.54.192.44
Probable Submitter: 109.165.78.181
----
Manual Page -- http://php.net/manual/en/function.array-replace.php
Edit -- https://master.php.net/note/edit/115215
Del: integrated -- https://master.php.net/note/delete/115215/integrated
Del: useless -- https://master.php.net/note/delete/115215/useless
Del: bad code -- https://master.php.net/note/delete/115215/bad+code
Del: spam -- https://master.php.net/note/delete/115215/spam
Del: non-english -- https://master.php.net/note/delete/115215/non-english
Del: in docs -- https://master.php.net/note/delete/115215/in+docs
Del: other reasons-- https://master.php.net/note/delete/115215
Reject -- https://master.php.net/note/reject/115215
Search -- https://master.php.net/manage/user-notes.php