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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -