Jump to content

Concatenating variables to form an index


58hoo
 Share

Recommended Posts

I would like to concatenate some numeric variables (values 0 thru 9) to produce an index into an array. For example, I have three variables:

Global $Var1

Global $Var2

Global $Var3

$Var1 = 0

$Var2 = 8

$var3 = 4

Concatenating these ($Var1 Var2 Var3) to produce 084 which I would then use to index an array.

Is there an easy way to do this?

Thanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...