PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<apd_set_socket_session_tracerename_function>
Last updated: Mon, 16 Jul 2012

override_function

(PECL)

override_function -- Overrides built-in functions

Description

bool override_function ( string function_name, string function_args, string function_code )

Syntax similar to create_function(). Overrides built-in functions (replaces them in the symbol table).

例子 1. override_function() example

<?php
override_function
('test', '$a,$b', 'echo "DOING TEST"; return $a * $b;');
?>




<apd_set_socket_session_tracerename_function>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST