Concatenate varriables
Posted: Wed Feb 17, 2010 4:38 pm
Hi my name is Chris and i am currently underway of creating a web hosting site for my personal use as like a secondary buissness if you like but please dont ask to much about that but i have stumbled upon a dilema that includes a couple of varriables in a loop as i am trying to make it so my varriable is created automaticly acording to a number so for example...
so basicly i am outputting a number and depending on what that number is it creates a varriable i thought of concatenating the varriable's so i get the result varriable if you would like to see my code to further understand what i am doing please post back i will be happy to help but yes i am trying to make choose a varriable from a string so again for those who still dont understand i have a number that is forever changing lets say 6 and i want to choose a varriable that will have that number in it so my varriable is $understandme[MY STRING HERE] and just so you know i am using the explode function to work with thank you in advanced.
Code: Select all
$mytext = $endtext[and my varriable here]