Jump to content

Check if function returns false?


newbtophp

Recommended Posts

if (function($params) === false) // check if the return value is EXACTLY false, so the type is required to be boolean.

if (function($params) == false) // Just requires the data to be null, 0, '' or false. 

if (!function($params)) // Just requires the data to be null, 0, '' or false. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.