Jump to content
Sign in to follow this  

Concatenating variables to form an index

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?


Share this post

Link to post
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
Sign in to follow this  

  • Create New...