Switch language

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




wp_parse_id_list [ WordPress Function ]

wp_parse_id_list ( $list )
Parameters:
  • (array|string) $list
Returns:
  • (array) Sanitized array of IDs
Defined at:



Clean up an array, comma- or space-separated list of IDs.

Source


<?php
function wp_parse_id_list$list ) {
    if ( !
is_array($list) )
        
$list preg_split('/[\s,]+/'$list);

    return 
array_unique(array_map('absint'$list));
}
?>

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