how can I replace the tabs in a file with a comma?
$contents = str_replace("\t", ",", $contents);
That doesn't seem to be working:
here's the file again:
200 Paddington 100 12.99 5.00 0.50 Our 11 inch bear is a great companion for those cold winter mornings. Quality construction, soft fur, and a red and white raglan tee will make him the envy of all your stuffed animals. \r\nSoft plush fur 11 inches tall.\r\nRed bow and t-shirt included. 1 1 graphics/00000001/bear.jpg graphics/00000001/bear-lg.jpg
100 Bagels and Lox 200 10.00 10.00 1.00 This is the talking fish 1 1
300 Monkey Around 300 5.00 5.00 1.00 This is a talking monkey. 1 1
400 I Hate Miva Bear 100 12.50 1.00 0.75 This is the famous I hate Miva Bear 1 1
also...
when placing commas in a file like this so you can explode it, isn't there something you have to do so that the first of the array will be counted......
like str_replace("", ",", $contents);
or something like that?