Hi,
I would like to do something similiar to the following:
and get the result:
year 1 year 2
It echos out 1 for both years, so how would you guys go about getting this result? I made this example up to demonstrate my problem, the code is a lot more complex...
Thanks,
Ann
I would like to do something similiar to the following:
Code:
$counter = 1;
$year = "year: NDX year: NDX";
$year = str_replace("NDX", $counter++, $year);
year 1 year 2
It echos out 1 for both years, so how would you guys go about getting this result? I made this example up to demonstrate my problem, the code is a lot more complex...
Thanks,
Ann