Best way to test if gzinflate process right string

If the string is not gzinflated, there will be error throwing.
Simple way to test:

if( @gzinflate(base64_decode($data)) !== false )
{
	//do something
}

By Keenlio, September 2, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


3 × = twenty seven

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>