Published on : September 01, 2020
Title:Array Chunk
Purpose :The array_chunk() function splits an array into chunks of new arrays.
Syntax :[php.array_chunk p1={array} p2=2 o.set=template.res /]
Input Parameter :Array, divider
Return value :Returns a multidimensional indexed array, starting with zero, with each dimension containing size elements
Example :
[template.set_array x a1=1 a2=2 a3=3 /] [php.array_chunk p1={template.x} p2=2 o.set=template.res /] [template.echo res /]
Output : multidimensional array
Description:We can create multidimensional indexed array, starting with zero, with each dimension containing size elements