RE: [PHP] combining variables...

From: Date: Tue, 06 Apr 2004 20:04:48 +0000
Subject: RE: [PHP] combining variables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182539@lists.php.net to get a copy of this message
You could dynamically generate variable names using: ${view_request_}.$i} = $value; This will generate: $view_request_1 $view_request_2 ... Vishal. -----Original Message----- From: Tristan.Pretty@risk.sungard.com [mailto:Tristan.Pretty@risk.sungard.com] Sent: Tuesday, April 06, 2004 1:14 PM To: php-general@lists.php.net Subject: [PHP] combining variables... Simply put, can I connect 2 variables, to make one... I want to output: $view_request_$i making for example a string: view_all_2 But I'm getting errors..? Parse error: parse error in /home/risk/public_html/download/results3.php on line 675 is there a simple explination...? ********************************************************************* The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *********************************************************************** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#182539) next »