function_exists 指定した関数が定義されている場合に &true; を返す &reftitle.description; boolfunction_exists stringfunction 組み込みの内部関数およびユーザー定義関数の中から、 function で指定した名前の関数を探します。 &reftitle.parameters; function 関数名を表す文字列。 &reftitle.returnvalues; function が存在し、関数である場合に &true;、 それ以外の場合に &false; を返します。 この関数は、 include_onceecho のような言語構造については &false; を返します。 &reftitle.examples; <function>function_exists</function> の例 \n"; } else { echo "IMAP 関数は利用できません。
\n"; } ?> ]]>
&reftitle.notes; ある関数がそれ自体設定やコンパイルオプションの問題で使用できない 場合でもその関数の名前が存在する可能性があることに注意してください (例としては image 関数などがあります)。 &reftitle.seealso; method_exists is_callable get_defined_functions class_exists extension_loaded