2004-08-05 13:15:18 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2004-08-13 16:12:06 +00:00
|
|
|
<!-- $Revision: 1.2 $ -->
|
2004-08-05 13:15:18 +00:00
|
|
|
<!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 -->
|
2004-08-13 14:10:03 +00:00
|
|
|
<refentry id="function.override-function">
|
2004-08-05 13:15:18 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>override_function</refname>
|
|
|
|
<refpurpose>Overrides built-in functions</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
2004-08-13 16:12:06 +00:00
|
|
|
<type>bool</type><methodname>override_function</methodname>
|
2004-08-05 13:15:18 +00:00
|
|
|
<methodparam><type>string</type><parameter>function_name</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>function_args</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>function_code</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Syntax similar to create_function(). Overrides built-in functions
|
|
|
|
(replaces them in the symbol table).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>override_function</function> example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
override_function('test', '$a,$b', 'echo "DOING TEST"; return $a * $b;');
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|