[pmwiki-devel] array transform question
Hans
design5 at softflow.co.uk
Thu Apr 12 15:11:02 CDT 2007
How do I transform or create a new array out of an existing array,
in the following way: ($p to $new)
$p = array($p[0],$p[1],$p2],$p[3],$p[4],.....,$p[$n]);
$ppp = 3; (for instance)
$n = 7 for instance
$new = array($p[0], $p[1].$p[2].$p[3], $p[4].$p[5].$p[6], $p[7]);
so the new array combines groups of elements, starting with $p[1], in
groups of $ppp elements.
I am handling posts on a page and creating subpage groupings of posts,
according to a PostsPerPage var $ppp.
Hans
More information about the pmwiki-devel
mailing list