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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -