Just do this:
$fieldcode = field;
Brandon
-----Original Message-----
From: Jamie Saunders [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 6:46 AM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
Web: http://jamie-s.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]