34.204.169.76 |    

Navigation

Google Advertisement

Die Funktion function_exists() ist der gleichnamigen PHP Funktion nach empfunden. Sie prüft ob eine user definierte Funktion vorhanden ist.

function_exists
  1. /**
  2.  * Return TRUE if the given function has been defined.
  3.  */
  4. function function_exists (function_name) {
  5.  
  6. 	// Original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
  7. 	if (typeof function_name == 'string'){
  8. 		return (typeof this.window[function_name] == 'function');
  9. 	} else{
  10. 		return (function_name instanceof Function);
  11. 	}
  12. }
  13.  
Parsed in 0.002 seconds at 206.49 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 6 users online.

Tags Cloud

Latest snippets
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)
STDERR
(Bash::Function)
radius
(CSS)
shadow
(CSS)
rotate
(CSS)
create_function
(JavaScript::Snippets)