Echo ' <br/>===============================================<br/> ';
Array_push ($arr 1, 3, 23, 55);
Echo ' The size of array is: '. Count ($arr 1). <br/> ';
Var_dump (Array_reverse ($arr 1));
Sort-Direct action on an array
Sort ($arr 1, sort_string);
$arr 2= Range (' A ', ' H ');
$arrTemp 1= implode ('-', $arr 2);
Echo ' ['. Implode ('], array_reverse (Explode ('-', $arrTemp 1)). '
Array merging, which will rearrange the indexes
$arr 3=array_merge ($arr 1, $arr 2);
To delete an array element
Array_splice ($arr 3, 6, 2);
Extract array, the original array is unchanged
$arr 4=array_slice ($arr 3, 2,3);
$fruits =array (' Red ' => ' apple ', ' yellow ' => ' banana ', ' green ' => ' lime ');
$colors =array_keys ($fruits);
$fla =array_values ($fruits);
Echoin_array (' green ', $colors);
Echoin_array (' black ', $colors)? ' In ': ' Isn't in ';
Echoarray_key_exists (' Yellow ', $fruits);
foreach ($fruitsas $key=> $value) {
Echo$key ' => '. $value. ' <br/> ';
while ($elem = each ($f)) {
echo$elem[' key '. '-'. $elem [' value ']. ' <br/> ';
$arr 5=array (2, 8, 100, 33,-18);
Find the maximum minimum value
Array element Application function
Array_walk ($arr 5, ' double ');
Var_dump (Array_filter ($arr 5, ' check '));
Echo ' Random number: '. Array_rand ($arr 6);
Count (); sizeof (); Array_count_values ();
$arr 7=array (4,5,1,2,3,1,2,1);
$ac =array_count_values ($arr 7);
Count the occurrences of each value
$arr 8=array (' key1 ' => ' v1 ', ' key2 ' => ' v2 ', ' Key3 ' => ' v3 ');
echo "$key 1 $key 2 $key 3";
Var_dump (Array_pad ($input, 5, 0));
Var_dump (Array_pad ($input,-5, 0));