Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

old_function

The old_function statement allows you to declare a function using a syntax identical to PHP/FI2 (except you must replace 'function' with 'old_function'.

This is a deprecated feature, and should only be used by the PHP/FI2->PHP 3 convertor.

Внимание

Functions declared as old_function cannot be called from PHP's internal code. Among other things, this means you can't use them in functions such as usort(), array_walk(), and register_shutdown_function(). You can get around this limitation by writing a wrapper function (in normal PHP 3 form) to call the old_function.



add a note add a note User Contributed Notes
old_function
dzonny dot dz at gmail dot com
05-Dec-2005 05:52
For everybody who want to know old_function's syntax, here it is:
old_function name $param1, $param2, ..., $paramn ( code;);
eg.:
<?
old_function eq $param, $param(
    if($param1==$param2)
        echo "equal";
    else
        echo "not equal";
    return ($param1==$param2);
);

eq(1,2);
?>

Start/end tags> <Migrating from PHP/FI 2 to PHP 3
Last updated: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571