Skip to content

Instantly share code, notes, and snippets.

@wesleyvicthor
Created January 14, 2013 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesleyvicthor/4534437 to your computer and use it in GitHub Desktop.
Save wesleyvicthor/4534437 to your computer and use it in GitHub Desktop.
#001 function_exists

#001 function_exists

function_exists(string $function_name); é utilizada para verificar se uma determinada função existe no programa em execução. É resposável por identificar funções definidas pelo usuário ou nativas do php. Seu valor de retorno é um boolean, true caso a função exista e false caso não.

Considerando construtores da linguagem como include_once, echo, print e outros, caso sejam testados utilizando function_exists terá seu retorno como false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment