Having a little trouble wrapping my mind around a way to do this. I have a config.php file which declares what certain string variables are. For example, $string1_title = "Title of page";
Now on my index.php i'm trying to get the contents of $string1 by using $string1 = $GET_['string1'];
Now what I want to do either by using a function or just some simple code is append "_title" to the end of $string 1 and then output the contents of the config.php variable.
What I have so far (but obviously doesn't work) is:
$string1 = $GET_['string1'];
$temp_string = &$string1."_title";
So idealy, what I would like is something like:
$temp_string = &($string1."_title"(;
Is there any way to implement this? Just let me know if i'm going about this wrong too, i'm open to anything.