{foreach:variable,key,value}

{foreach:variable,key,value}

{foreach:variable,key,value} -- creates a PHP foreach loop

Description

creates a foreach loop, needs an {end:} tag. note that the engine will add the variable to the scope, so they will not be prefixed with $t-> when used inside the loop.

Parameter

  • string variable - relates to $object->variable

  • string key - creates a variable 'key' in the current scope.

  • string value - optionally creates a variable 'value' in the current scope. (as in $key=>$value)

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.