|
for example i think i only need a way to replace the number portion of the variable,
like $title{$previous}
but I don't know how to just change the number.
for example this:
$[title$previous] if $previous = 3
returns $[title3]
so i need it to return $title3
which should hopefully print the correct title. (the text that was assigned to $title3)
searching around I am now trying like this:
ok, so this is how far I got:
<?php $previous =3; $dollar= '$'; $g= 'title'; $preID ="$dollar$g$previous"; ?>
<?php echo $preID ;?>
but this shows $title3, it does not give me the "Title 3" from the $title3 variable.
Last edited by ShadowHawk; 01-21-2011 at 01:53 PM..
Reason: update
|