★ wanayoo — archive 1999 http://www.php.net/manual/hu/function.function-exists.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Máshova nem sorolható
Quick Reference
English version of this pageGerman version of this pageJapanese version of this pageItalian version of this pageFrench version of this page
Máshova nem sorolható
* connection_aborted
* connection_status
* connection_timeout
* define
* defined
* die
* eval
* exit
* func_get_arg
* func_get_args
* func_num_args
* function_exists
* get_browser
* ignore_user_abort
* iptcparse
* leak
* pack
* register_shutdown_function
* serialize
* sleep
* uniqid
* unpack
* unserialize
* usleep
* highlight_string
* highlight_file
* show_source
Manual: function_exists
View the source code for this pageSearch the site



Previous page
 func_num_args
 Updated
Sat, 12 Aug 2000
get_browser 
Next page


function_exists

(PHP3 >= 3.0.7, PHP4 )

function_exists --  Return true if the given function has been defined

Description

int function_exists (string function_name)

Checks the list of defined functions for function_name. Returns true if the given function name was found, false otherwise.


User Contributed Notes: function_exists


turadg@guru.nu
05-Aug-1999 08:49
The argument <I>function_name</I> must be in <B>lower</B> case.


turadg@guru.nu
19-Aug-1999 07:20
Correction to the note below:
The bug is <B>fixed in PHP >=3.09</B>. It exists in 3.07. I don't know about 3.08.

In any case, these two annotations can be purged.



zarkdav+php@eddy.easynet.INVALID
11-Sep-1999 10:59
Is it possible to find out whereas a class is defined (I've tried with function_exists but it doesn't work -- php 3.0.12).

--
Please replace INVALID with 'fr' (spam shield)



Anti Veeranna &lt;duke@no.spam.ee&gt;
14-Dec-1999 03:41
function_exists(some_class) works for me in php 3.0.12



jconde@solar.sar.net
16-Mar-2000 04:51
This funcion doesn't seem to be working in php4beta|p1



flash@drewnels.net
21-Apr-2000 01:35
try<pre>class_exists</pre>it worked for me


nicolasm@k-os.com
07-Jul-2000 03:10
To do an arror handler, I would need a way to get the function name: function func() { if ($error) { handleError(get_function_name(); } }
I currently use __LINE__ and __FILE__ but it's not enough for me!



g.tenchio@telco-tech.de
26-Jul-2000 01:45
function_exists() doesnt work with ImagePng, ImageGif, ImageJpeg because all functions are defined even if compiled only with gif support.


 About Notes


Previous page
 func_num_args
 Updated
Sat, 12 Aug 2000
get_browser 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.