note 21361 deleted from function.function-exists by nlopess

From: Date: Thu, 03 Feb 2005 10:08:45 +0000
Subject: note 21361 deleted from function.function-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84418@lists.php.net to get a copy of this message
Note Submitter: cluebie ---- If you know a function exists but want to see if it is available you should execute it and compare it's return value to false. eg: The getmxrr() function on a Windows platform exists but is not available (as of 4.2.0). To check: $result = @getmxrr("me@hotmail.com"); if ( false === $result ) { # do unavailable function handling } The @ silences the unavailable function warning.

« previous php.notes (#84418) next »