make variable from foreach result
Posted: Tue Nov 04, 2003 2:48 pm
Hi there,
i am trying to get a variable out of a result from a for each loop. So i build my table structure with everything in it. The result of this i want to put into a variable so it can be replaced in a template.
So far i used
echo stripslashes(str_replace(array('###MENU###','###TEXT###'),array("THIS SHOULD BE A VARIABLE INSTEAD OF TEXT",$replace2),$message));
Who can help me out and tell me how to do this?
Kind regards
Robbie
i am trying to get a variable out of a result from a for each loop. So i build my table structure with everything in it. The result of this i want to put into a variable so it can be replaced in a template.
So far i used
echo stripslashes(str_replace(array('###MENU###','###TEXT###'),array("THIS SHOULD BE A VARIABLE INSTEAD OF TEXT",$replace2),$message));
Who can help me out and tell me how to do this?
Kind regards
Robbie