ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙformats->headline->color = 'red'; $out->formats->headline->style = array( 'bold' ); // Define a new format "sum" $out->formats->sum->color = 'blue'; $out->formats->sum->style = array( 'negative' ); // Create a new table $table = new ezcConsoleTable( $out, 60 ); // Create first row and in it the first cell $table[0][0]->content = 'Headline 1'; // Create 3 more cells in row 0 for ( $i = 2; $i < 5; $i++ ) { $table[0][]->content = "Headline $i"; } $data = array( 1, 2, 3, 4 ); // Create some more data in the table... foreach ( $data as $value ) { // Create a new row each time and set it's contents to the actual value $table[][0]->content = "$value"; } // Set another border format for our headline row $table[0]->borderFormat = 'headline'; // Set the content format for all cells of the 3rd row to "sum" $table[2]->format = 'sum'; $table->outputTable(); echo "\n"; /* RESULT (without color): +------------+------------+------------+------------+ // | Headline 1 | Headline 2 | Headline 3 | Headline 4 | // Red bordered line +------------+------------+------------+------------+ // | 1 | | | | +------------+------------+------------+------------+ | 2 | | | | // Content printed in white on blue +------------+------------+------------+------------+ | 3 | | | | +------------+------------+------------+------------+ | 4 | | | | +------------+------------+------------+------------+ */ ?>