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 ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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