php suggestion
| From: | Ante Drnasin | Date: | Mon, 14 Feb 2005 09:17:32 +0000 |
| Subject: | php suggestion | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-14915@lists.php.net to get a copy of this message | ||
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 $text to db
}
or
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) .... I know this concept looks a bit strange but just wanted to hear oppinions from the experts... :) Thanx Ante