Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_array_slice_assoc [ WordPress Function ]

wp_array_slice_assoc ( $array, $keys )
Parameters:
  • (array) $array The original array
  • (array) $keys The list of keys
Returns:
  • (array) The array slice
Defined at:



Extract a slice of an array, given a list of keys.

Source


<?php
function wp_array_slice_assoc$array$keys ) {
    
$slice = array();
    foreach ( 
$keys as $key )
        if ( isset( 
$array$key ] ) )
            
$slice$key ] = $array$key ];

    return 
$slice;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics