Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (521.33 KB, 81 trang )
{
if ($arg === NULL || (is_array($arg) && count($arg) == 0))
{
// do nothing
}
elseif (is_object($arg))
{
$result = array_merge($result, get_object_vars($arg));
}
elseif (is_assoc($arg))
{
$result = array_merge($result, $arg);
}
else
{
if ($i < $sc)
{
$key = $simple[$i++];
if (!empty($arg) || !isset($result[$key]))
{
$result[$key] = $arg;
}
}
else
{
if ($key === NULL)
{
user_error(“Argument ‘$arg’ was passed with no
available target - aborting \n”, E_USER_ERROR);
}
if (isset($result[$key]))