| By: Ubu Noir Date: 2004-02-12 Time: 23:58 | Sub-blocks and arraysHello, 
Sub-blocks are possible for sql queries, but why not for arrays? Using one of previous examples in a modified version:
 | [stud;block=begin] [stud.name]
 In Classes: [classes;block=begin] [classes.class_title], [classes;block=end]
 [stud;block=end]
 
 | 
I think it would be a nice feature to do a single top-level merge, and have all the sub-blocks merge automaticly with proper named fields containing arrays. For example:
 | $students = array( 
 array(
 name => "John Doe",
 classes => array( array(class_title => "Math"), array(class_title => "English") ),
 ),
 
 array(
 name => "Mary",
 classes => array( array(class_title => "Economy") ),
 )
 
 );
 
 $TBS->MergeBlock("stud", $students);
 
 | 
Or maybe there is any existing solution for such multi-dimensional arrays?
 
Greets | 
	
      | By: Skrol29 Date: 2004-02-13 Time: 01:10 | Re: Sub-blocks and arraysHello UbuNoir,
 It could be possible to do this using the sub-block feature if there was also a query feature for Php Arrays.
 Query for Php Array is asked many times, but not so easy to develop because it means to support : 'and', 'or', =, >, >=,=,<,<=,<>,... and some other statements.
 
 By the way, this could be donne, with custom data functions for TBS.
 |