Switch language

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




maybe_unserialize [ WordPress Function ]

maybe_unserialize ( $original )
Parameters:
  • (string) $original Maybe unserialized original, if is needed.
Returns:
  • (mixed) Unserialized data can be any type.
Defined at:



Unserialize value only if it was serialized.

Source


<?php
function maybe_unserialize$original ) {
    if ( 
is_serialized$original ) ) // don't attempt to unserialize data that wasn't serialized going in
        
return @unserialize$original );
    return 
$original;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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