note 42555 deleted from function.array-map by aidan

From: Date: Tue, 06 Jul 2004 08:28:35 +0000
Subject: note 42555 deleted from function.array-map by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72715@lists.php.net to get a copy of this message
Note Submitter: brenda@wallace.net.nz ---- this is useful for building insert statements. $this->_table_name_ = "uuser"; $this->fields = array("user_id", "user_name", "user_email"); $sql ="INSERT INTO $this->_table_name_ ( " . implode($this->fields, ", ") . ") VALUES (" . implode( array_map(array($this, "getDbValue"), $this->fields) , ", " ) . ");";

« previous php.notes (#72715) next »