note 113042 deleted from function.array-values by crell
| From: | crell@php.net | Date: | Tue, 12 Apr 2022 01:05:31 +0000 |
| Subject: | note 113042 deleted from function.array-values by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218187@lists.php.net to get a copy of this message | ||
Note Submitter: heber dot gentilin at gmail dot com
----
/**
* Return the new array from the offset index
*/
function array_values_from($array, $offset_index = 0) {
if (!is_array($array))
return null;
$index = (int)$offset_index;
foreach($array as $i => $value)
$array_return[$index++] = $value;
return $array_return;
}