![]() |
foreach help
Hi,
I'm coding a template system for my site with multiple themes and i need to know how to echo things like this: PHP Code:
It's like array but not. I know how to replace in the site: PHP Code:
Can anyone help. Would be very helpful. Thanks, Clawed |
How'd you end up with a string like that?
If you have a newer version of PHP and the data comes from a completely trusted source, you can use eval: PHP Code:
PHP Code:
Code:
Array |
Thanks, i'll try these.
Quote:
Code:
<div>#data1#</div>And after row content there's things that i want it to search and replace for example: PHP Code:
------------------------------------------------------------------------------------ Nope not how i wanted it, i want so i can use foreach() to set a template param, example: PHP Code:
PHP Code:
And same with data2: PHP Code:
|
Well no, this wouldn't work:
PHP Code:
PHP Code:
PHP Code:
Code:
T ObjectCode:
print $t->getParam('data1');Edit: Oh, BTW, this is what makes sense: PHP Code:
PHP Code:
|
Thankyou!
Worked perfect! |
| All times are GMT +1. The time now is 10:46 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.