note 71139 deleted from language.variables by bobby

From: Date: Mon, 13 Nov 2006 22:56:47 +0000
Subject: note 71139 deleted from language.variables by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119689@lists.php.net to get a copy of this message
Note Submitter: jphansen at uga dot edu ---- Here's a useful addition to my code in the previous post that truncates the ending delimiter, so your string would cleanly print as "value1, value2" instead of "value1, value2, ". <? foreach ($groups as $name) ${"total_" . $name} = trim(${"total_" . $name}, ", "); ?>

« previous php.notes (#119689) next »