PHP Classes

File: docs/Features/Dynamic vars inside a loop.md

Recommend this page to a friend!
  Packages of Rafa Rodriguez   Div PHP Template Engine   docs/Features/Dynamic vars inside a loop.md   Download  
File: docs/Features/Dynamic vars inside a loop.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Div PHP Template Engine
Template processing engine that replaces tags
Author: By
Last change:
Date: 3 months ago
Size: 600 bytes
 

Contents

Class file image Download

|Var|Data type|Description| |---|---|---| |$_item|mixed|Current item| |$_previous|mixed|The previous item| |$_next|mixed|The next item| |$_key|mixed|The key of the item in the PHP array| |$_index|integer|The index of the item (0..n-1)| |$_index_random|integer|Random index of the list (0..n-1)| |$_order|integer|The order of the item (1..n)| |$_list|string|The name of the list| |$_is_last|boolean|True if the current item is the last| |$_is_first|boolean|True if the current item is the first| |$_is_odd|boolean|True if the current index is odd| |$_is_even|boolean|True if the current index is even|