Jump to content

Recommended Posts

Posted

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,

Posted

couldnt you just...

$concatenated = Int ($var1 & $var2 & $var3)

?

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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
  • Recently Browsing   0 members

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