note 31705 deleted from language.variables by torben
| From: | torben@php.net | Date: | Wed, 18 Jun 2003 19:20:33 +0000 |
| Subject: | note 31705 deleted from language.variables by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50598@lists.php.net to get a copy of this message | ||
Note Submitter: daevid@daevid.com
----
While this may or may not be obvious, to use references with a function, do it like this...
function timeStampNotes($notes)
{
if ($notes != "")
$notes = "\n\n[".date("m/d/Y h:iA")."]"\n".$notes;
}
timeStampNotes(&$contact_notes);
notice that you use the & in the passing, not in the function itself...
If your notes are getting to be large textareas (like with a database), this may be faster than
sending it the normal way.