18.224.246.203 |    

Navigation

Google Advertisement

Die Funktion function_exists() ist der gleichnamigen PHP Funktion nach empfunden. Sie prüft ob eine definierte Funktion vorhanden ist, prüft aber auch ob sich ein Befehl im Pfad befindet.

function_exists
  1. # ***************************************************************************
  2. # This function check if an defined function or command exist.
  3. #
  4. #  @param string $1 function name (required)
  5. #  @return bool
  6. #  @example:    ! function_exists "rc_myfunc" && exit 1
  7.  
  8. function function_exists() {
  9.  
  10. [ -z "$1" ] && return
  11. eval $1 >/dev/null 2>&1
  12. return $?
  13.  
  14. }
Parsed in 0.003 seconds at 124.70 KB/s

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

User online
There are 1 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)