note 46280 added to functions

From: Date: Tue, 05 Oct 2004 15:48:36 +0000
Subject: note 46280 added to functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-78030@lists.php.net to get a copy of this message
if you want to redeclare a PHP-function using i.e. function pg_query($args){ ... } you'll get an error (of course). To redeclare existing functions the following works: define(pg_query, pg_query_user); function pg_query_user($args){ print "pg_query was used"; } pg_query("foo"); output: pg_query was used ---- Manual Page -- http://www.php.net/manual/en/functions.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46280 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46280&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46280&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78030) next »