---restore content starts---
<?php//Array_unique ($array) de-duplication//ARRAY_UNSHIF () append function to the top of the array//ARRAY_SHIF ($a, "SS") removes the function from the top of the array, returning the number of deletions//array_pop ( $array) Delete the last element of the array//array_values ($array) Get the value of the array//RTRIM ($a, ",") to delete the comma echo "<pre>" on the right, and function dump ($ARRX) { Print_r ($ARRX);} /* $arr 6e = array ("aa012" and "Apple", "d02" and "Shirley", "Aa03" and "Grapes", "Aa103" and "grapes"), $shop =array_unique ($arr 6a); (Array_shift ($arr 6a)) {echo "delete succeeded";} echo $arr 8;array_unshift ($arr 6a, "LLS");d UMP ($arr 6a), */$arr 6a = Array ("Apple", "Shirley", "Grape"),//array_pop ($arr 6a); Dump ($arr 6a);? >
<?PHP//Array_unique ($array) de-duplication//ARRAY_UNSHIF () appends the function to the top of the array//ARRAY_SHIF ($a, "SS") to remove the function from the top of the array, returning the number of deletions//array_pop ($array Delete the last element of the array//array_values ($array) to get the value of the array//RTRIM ($a, ",") to delete the comma of the right numberEcho"<pre>";functionDump$arrx){ Print_r($arrx); }/*$arr 6e = Array ("aa012" and "Apple", "d02" and "Shirley", "Aa03" and "Grapes", "Aa103" and "grapes"); $shop =array_unique ($arr 6a); if (Array_shift ($arr 6a)) {echo "delete succeeded";} echo $arr 8;array_unshift ($arr 6a, "LLS");d UMP ($arr 6a);*/$arr 6a=Array("Apple", "Shirley", "Grape");//Array_pop ($arr 6a);Dump ($arr 6a);?>View Code
PHP array array_values () Array_key ()