Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7356 invoked by uid 1010); 14 Feb 2005 09:20:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7339 invoked from network); 14 Feb 2005 09:20:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2005 09:20:06 -0000 X-Host-Fingerprint: 217.119.228.145 ns.jool.nl FreeBSD 4.6-4.9 Received: from ([217.119.228.145:2895] helo=ns.jool.nl) by pb1.pair.com (ecelerity 1.2.11 (r4403)) with SMTP id 99/CB-24737-44D60124 for ; Mon, 14 Feb 2005 04:20:04 -0500 Received: (qmail 67709 invoked from network); 14 Feb 2005 09:20:01 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 14 Feb 2005 09:20:01 -0000 Received: from mc-scan.tno.nl (mc-scan.tno.nl [134.221.128.7]) by webmail.jool.nl (IMP) with HTTP for ; Mon, 14 Feb 2005 10:20:01 +0100 Message-ID: <1108372801.42106d415a36a@webmail.jool.nl> Date: Mon, 14 Feb 2005 10:20:01 +0100 To: Ante Drnasin Cc: internals@lists.php.net References: <20050214091449.761.qmail@lists.php.net> In-Reply-To: <20050214091449.761.qmail@lists.php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 134.221.128.7 Subject: Re: [PHP-DEV] php suggestion From: D.Kingma@jool.nl ("David Kingma | jool.nl") Quoting Ante Drnasin : > ex1: > function AddToDb(mysql_scape_string($text)) { > //enter $text to db > } > which would be the same as > function AddToDb($text) { > $text = mysql_escape_string($text); > //enter $text to db > } > > ex2: > > function removeDigitsFromText($text) { > //return the text striped from digits > } > > function AddTextToDB(removeDigitsFromText($text)) { > //add text to db; > } > > This could be very usefull although I do understand that it could cause > problems (references for example) .... Why could this be usefull? You're putting logic into the parameter list, I can't think of a reason why you would like to do this. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.