Jamie Saunders <[EMAIL PROTECTED]> wrote:

 > 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

Look variable variables up in the manual, I think that would solve
your problem.

example:

$var = "fieldcode";

$$var = "the value";

echo $fieldcode;

more information here:
http://www.php.net/manual/en/language.variables.variable.php

-- 
Henrik Hansen


-- 
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]

Reply via email to