We have $id
and $title
variables, which everytime change.
For each $id
we should create a new variable $temp_title_%id%
, and give to it $title
's value.
Like:
$id = 10;
$title = 'Hello people!';
$temp_title_10 = 'Hello people!';
Tryed this (doesn't work):
$temp_title_ . $id = $title;
Thanks.