Skip to content

Instantly share code, notes, and snippets.

@ConConovaloff
Last active December 4, 2018 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConConovaloff/5025a76b80a2a5e98f7472f1be10830b to your computer and use it in GitHub Desktop.
Save ConConovaloff/5025a76b80a2a5e98f7472f1be10830b to your computer and use it in GitHub Desktop.
php hard
$a = [
'numericKey',
'myKey' => 'valueByStringKey',
];
echo 'About: array array_keys(array $array)' . PHP_EOL;
echo 'Возвращает все ключи массива: ';
echo 'Имеем: ' . var_export($a, true);
echo 'Получаем: ' . var_export(array_keys($a), true);
echo 'About - array_change_key_case' . PHP_EOL;
echo 'About - array_chunk' . PHP_EOL;
echo 'About - array_column' . PHP_EOL;
echo 'About - array_combine' . PHP_EOL;
echo 'About - array_count_values' . PHP_EOL;
echo 'About - array_diff_assoc' . PHP_EOL;
echo 'About - array_diff_key' . PHP_EOL;
echo 'About - array_diff_uassoc' . PHP_EOL;
echo 'About - array_diff_ukey' . PHP_EOL;
echo 'About - array_diff' . PHP_EOL;
echo 'About - array_fill_keys' . PHP_EOL;
echo 'About - array_fill' . PHP_EOL;
echo 'About - array_filter' . PHP_EOL;
echo 'About - array_flip' . PHP_EOL;
echo 'About - array_intersect_assoc' . PHP_EOL;
echo 'About - array_intersect_key' . PHP_EOL;
echo 'About - array_intersect_uassoc' . PHP_EOL;
echo 'About - array_intersect_ukey' . PHP_EOL;
echo 'About - array_intersect' . PHP_EOL;
echo 'About - array_key_exists' . PHP_EOL;
echo 'About - array_key_first' . PHP_EOL;
echo 'About - array_key_last' . PHP_EOL;
echo 'About - array_map' . PHP_EOL;
echo 'About - array_merge_recursive' . PHP_EOL;
echo 'About - array_merge' . PHP_EOL;
echo 'About - array_multisort' . PHP_EOL;
echo 'About - array_pad' . PHP_EOL;
echo 'About - array_pop' . PHP_EOL;
echo 'About - array_product' . PHP_EOL;
echo 'About - array_push' . PHP_EOL;
echo 'About - array_rand' . PHP_EOL;
echo 'About - array_reduce' . PHP_EOL;
echo 'About - array_replace_recursive' . PHP_EOL;
echo 'About - array_replace' . PHP_EOL;
echo 'About - array_reverse' . PHP_EOL;
echo 'About - array_search' . PHP_EOL;
echo 'About - array_shift' . PHP_EOL;
echo 'About - array_slice' . PHP_EOL;
echo 'About - array_splice' . PHP_EOL;
echo 'About - array_sum' . PHP_EOL;
echo 'About - array_udiff_assoc' . PHP_EOL;
echo 'About - array_udiff_uassoc' . PHP_EOL;
echo 'About - array_udiff' . PHP_EOL;
echo 'About - array_uintersect_assoc' . PHP_EOL;
echo 'About - array_uintersect_uassoc' . PHP_EOL;
echo 'About - array_uintersect' . PHP_EOL;
echo 'About - array_unique' . PHP_EOL;
echo 'About - array_unshift' . PHP_EOL;
echo 'About - array_values' . PHP_EOL;
echo 'About - array_walk_recursive' . PHP_EOL;
echo 'About - array_walk' . PHP_EOL;
echo 'About - array' . PHP_EOL;
echo 'About - arsort' . PHP_EOL;
echo 'About - asort' . PHP_EOL;
echo 'About - compact' . PHP_EOL;
echo 'About - count' . PHP_EOL;
echo 'About - current' . PHP_EOL;
echo 'About - each' . PHP_EOL;
echo 'About - end' . PHP_EOL;
echo 'About - extract' . PHP_EOL;
echo 'About - in_array' . PHP_EOL;
echo 'About - key_exists' . PHP_EOL;
echo 'About - key' . PHP_EOL;
echo 'About - krsort' . PHP_EOL;
echo 'About - ksort' . PHP_EOL;
echo 'About - list' . PHP_EOL;
echo 'About - natcasesort' . PHP_EOL;
echo 'About - natsort' . PHP_EOL;
echo 'About - next' . PHP_EOL;
echo 'About - pos' . PHP_EOL;
echo 'About - prev' . PHP_EOL;
echo 'About - range' . PHP_EOL;
echo 'About - reset' . PHP_EOL;
echo 'About - rsort' . PHP_EOL;
echo 'About - shuffle' . PHP_EOL;
echo 'About - sizeof' . PHP_EOL;
echo 'About - sort' . PHP_EOL;
echo 'About - uasort' . PHP_EOL;
echo 'About - uksort' . PHP_EOL;
echo 'About - usort' . PHP_EOL;
== копирование объекта по ссылке ===
https://3v4l.org/6PftC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment