FW: [PHP] adding text to a variable name
| From: | Brandon Orther | Date: | Tue, 01 May 2001 21:16:58 +0000 |
| Subject: | FW: [PHP] adding text to a variable name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51025@lists.php.net to get a copy of this message | ||
Sorry Syntax error.
Correct: $fieldcode = $field;
-----Original Message-----
From: Brandon Orther [mailto:orther@webintellects.com]
Sent: Tuesday, May 01, 2001 2:06 PM
To: PHP User Group; Jamie Saunders
Subject: RE: [PHP] adding text to a variable name
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
--
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