note 35111 rejected from function.preg-replace by rioter
| From: | rioter@php.net | Date: | Wed, 20 Aug 2003 05:29:22 +0000 |
| Subject: | note 35111 rejected from function.preg-replace by rioter | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54731@lists.php.net to get a copy of this message | ||
Note Submitter: arial@uqg-2000.com
----
I'm having a problem I'm using a flat file using a structure like:
data1|data2|data3|data4
I'm using preg_replace but I can only seem to get it to work with "\t" and not
"|" here's my code I'm using:
preg_split("/\t|\n/", $val);
I've tried:
preg_split("/\||\n/", $val);
But it doesn't work can someone tell me what I'm doing wrong?