|
Written by Handy PHP Administrator
|
|
Sunday, 03 September 2006 15:13 |
| Description: | | | string insert_tabs(int count) | | | | | | | This function can save you some time by automatically inserting tabs in your output. Adding tabs to your outputed HTML makes it much easier to read and as a result easier to debug if you have a problem. | | | | | | Function: | | | function insert_tabs($count=1){ // Function written by Marcus L. Griswold (vujsa) // Can be found at http://www.handyphp.com // Do not remove this header! for($x = 1; $x <= $count; $x++){ $output .= "\t"; } return $output; } | | | | | | Usage: | | | echo insert_tabs(3) . "Hello!"; | | | | | Result: | | | Hello! | | | | | Notes: | | | This is kind of self explanitory! |
{mos_sb_discuss:3}
|
|
Last Updated on Friday, 08 September 2006 00:24 |