3.147.65.65 |    

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.000 seconds at 767.17 KB/s

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

User online
There are 5 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)