Hi Jochen,
if(unserialize($string)===false)
works for me. But you have to suppress the E_NOTICE
Cheers,
Stig
Jochen Daum wrote:
> Hi,
>
> what do you use to test if a variable can be unserialized? I.e.
> contains at least {N;} or something that represents some "unserializable".
>
> Jochen
>
> >
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---