php get file content with explode -
i file content of usual txt file array explode. unfortunately if use usual file open opens file, seperates lines. not useful format this:
date|name|specialtext|description|
but can happen description has several lines, s why usual method not working.
i tried here:
$lines = file($filename1); foreach ($lines $line) { if (preg_match('/^\s*|+\r*$/', $line)) { echo "finally"; }
| should sperator. not work.
Comments
Post a Comment