RE: [PHP] adding text to a variable name
| From: | Brandon Orther | Date: | Tue, 01 May 2001 21:06:24 +0000 |
| Subject: | RE: [PHP] adding text to a variable name | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51020@lists.php.net to get a copy of this message | ||
Just do this:
$fieldcode = field;
Brandon
-----Original Message-----
From: Jamie Saunders [mailto:webprogramming@jamie-s.co.uk]
Sent: Tuesday, May 01, 2001 6:46 AM
To: php-general@lists.php.net
Subject: [PHP] adding text to a variable name
Hi,
Is it possible to add text onto the end of a variable name?
e.g. to add the word 'code' onto the variable $field so it would be
$fieldcode
Thanks
Jamie Saunders
Mail: webprogramming@jamie-s.co.uk
Web: http://jamie-s.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net