![]() |
quick template question
let's say i have a template called
my_template and inside I just want to do this: loop through the elements of an array, and print them out? so, if an array had 'jerry', 'paul', 'marsha' it would print Code:
i know VB obviously has to do this looping in the templates.... thank you. ..jordan willms |
Give the template contents like $myarray (just a single variable). Then before the template is eval'ed, make sure $myarray contains (substitute \n for <br> if appropriate):
PHP Code:
|
maybe i should have been specific, what i want to figure out is how VB does stuff like this :
eg. takes an array of $names[0] = 'bob'; $names[1] = 'sam'; with the following template Code:
Code:
maybe i am not understanding how VB does it. are array's even involved? please help me. thanks in advance. jordan |
All times are GMT. The time now is 12:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|