38.107.191.111 |    

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.017 seconds at 21.41 KB/s

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

User online
There are 5 users online.

Tags Cloud

Latest snippets
urlencode
(Perl::Function)
gethostbyaddr
(Perl::Function)
create_function
(JavaScript::Snippets)
function_exists
(JavaScript::Snippets)
listing
(PHP::Function)
runPhpCode
(PHP::Function)
md5
(Bash::Function)
rtrim
(Bash::Function)
ltrim
(Bash::Function)
function_exists
(Bash::Function)