Switch language

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




wp_convert_hr_to_bytes [ WordPress Function ]

wp_convert_hr_to_bytes ( $size )
Parameters:
  • (unknown_type) $size
Returns:
  • (unknown)
Defined at:



{@internal Missing Short Description}}

Source


<?php
function wp_convert_hr_to_bytes$size ) {
    
$size strtolower($size);
    
$bytes = (int) $size;
    if ( 
strpos($size'k') !== false )
        
$bytes intval($size) * 1024;
    elseif ( 
strpos($size'm') !== false )
        
$bytes intval($size) * 1024 1024;
    elseif ( 
strpos($size'g') !== false )
        
$bytes intval($size) * 1024 1024 1024;
    return 
$bytes;
}
?>

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