World Of Webmaster
Đăng nhập / Đăng ký
Account
Free for web
Check pagerank
Input check pager (Not http://)

Ext: blog.kai.vn
Check google pagerank
View HTML source
FUNCTION LIBRARY
HTML Tags Library
PHP Functions Library ASP Functions Library
PHP Functions array_reverse
Chức năng: Đảo ngược thứ tự sắp xếp mảng
Ngôn ngữ: php - Nhóm: array
CÚ PHÁP
 array array_reverse ( array $array [, bool $preserve_keys] );

Nhận một mảng và trả về một mảng có thứ tự key được đảo ngược.Duy trì giá trị key nếu $preserve_keys = TRUE.

  • Đối số thứ 2 đã được xác lập trong PHP 4.0.3.
  • VÍ DỤ

    Chú ý đến key và value trong hai mảng được trả về.

    <?php
    $input  
    = array("php"4.0, array("green""red"));
    $result array_reverse($input);
    $result_keyed array_reverse($inputtrue);
    ?>
    TRẢ VỀ
    Array
    (
        [0] => Array
            (
                [0] => green
                [1] => red
            )
    
        [1] => 4
        [2] => php
    )
    Array
    (
        [2] => Array
            (
                [0] => green
                [1] => red
            )
    
        [1] => 4
        [0] => php
    )

    array_multisort
    array_pad
    array_pop
    array_push
    array_rand
    array_reduce
    array_search
    array_shift
    array_slice
    array_intersect_uassoc
    Library ›› HTML Tag | PHP Function | ASP Function
    Page : 806754
    Online :
    Visited : 370079
     
    Liên h | Thêm vào Favorite | Gửi link qua e-mail | Thông tin website
    Copright © 2009 KAI Blog
    Code by BOINGOnline. Contact email : contact@kai.vn
    Theme: default | classic |