Paul on Tue, 2 Sep 2003 14:10:15 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Tabs


Bill Patterson wrote:

<?PHP
$std_in=fopen("php://stdin","r");
$buffer=fread($std_in,32767);
$tab_delim=split("\t",$buffer);
echo "buffer = $buffer\n";
foreach($tab_delim as $key=>$value) {
echo "line $key = $value\n";
}
?>



Nice code. In its present form it doesn't do what I need, but I can imagine some uses for it.


_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug


  • References:
    • [PLUG] Tabs
      • From: Bill Patterson <patterson@computer.org>