PHP array array_values () Array_key ()

Source: Internet
Author: User

---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 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.