From: "Jamie Saunders" <[EMAIL PROTECTED]>
Subject: [PHP] adding text to a variable name
> 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
I think you want to do it in an automatic way for each variable
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 =
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. t
3 matches
Mail list logo