Re: [PHP-DEV] php suggestion

2005-02-14 Thread Nicholas Telford
David Kingma | jool.nl wrote: Quoting Ante Drnasin <[EMAIL PROTECTED]>: 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 removeDigitsFromT

Re: [PHP-DEV] php suggestion

2005-02-14 Thread Nicholas Telford
David Kingma | jool.nl wrote: Quoting Ante Drnasin <[EMAIL PROTECTED]>: 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 removeDigitsFromT

Re: [PHP-DEV] php suggestion

2005-02-14 Thread George Schlossnagle
I know this concept looks a bit strange but just wanted to hear oppinions from the experts... :) This concept looks strange (and non-standard - do any other languages support this semantic?). It doesn't save you much typing either. George -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] php suggestion

2005-02-14 Thread David Kingma | jool.nl
Quoting Ante Drnasin <[EMAIL PROTECTED]>: > 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 removeDigitsFrom

[PHP-DEV] php suggestion

2005-02-14 Thread Ante Drnasin
Hi again guys I would just like to hear you oppinions about something like this...(please don't shoot me :) ) 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 $