_
_ Handy PHP
_
_
Tutorials, Scripts, Information And Other Resources arrow PHP Functions arrow Insert Tabs
Sunday, 12 October 2008
_

Refer A Friend using Revolution Money Exchange
Resource Menu
Handy PHP Store
Free Domain Name
PHP Functions
PHP Downloads
PHP Newsfeeds
PHP Tutorials
Webmaster Tools
User Login
TalkPHP
Get friendly help with your PHP problems for free.
www.talkphp.com
The PHP Resource Index
Handy PHP
Free PHP Help!


 
This Section Is Scheduled
For Maintenance

    The format of the PHP Functions section here at Handy PHP needs some attention soon.  Recent changes to the website have brought to light some significant layout problems with this section.  The need for a standard format for all functions has resulted in the problems.  Each function will be reformated, enhanced, archived, and updated as time allows. In the meantime, some screen resolutions may display a distorted version of the website.
Thank you for your visit and patience.

If you encounter any major problems with viewing the functions, please inform us via the forums.
If you are unable to find what you needed here, please let us know what you wanted in the forums so that we may add relevant content in the future.

Insert Tabs Print E-mail
User Rating: / 2
PoorBest 
PHP Resources - Handy PHP Functions
Written by M. L. Griswold   
Sunday, 03 September 2006
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!


Discuss this article on the forums. (1 posts)
Last Updated ( Thursday, 07 September 2006 )
 
< Prev   Next >

_
 
_
_
© 2008 Handy PHP