Parsing tabs in PHP?

Discussion in 'PHP' started by . Jordan ., Aug 31, 2010.

  1. #1
    Is there any way to parse tabs inputted into a textarea? For example, to parse returns and double-spaces I use...

    $text = str_replace("\n", "<br />", $text);
    $text = str_replace("  ", " &nbsp;", $text);
    PHP:

     
    . Jordan ., Aug 31, 2010 IP
  2. Zeh.

    Zeh. Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $tab = "\t";
     
    Zeh., Aug 31, 2010 IP