Parsing text file with PHP
Collapse
X
-
it is because of the
High-Resolution CT Scans
Center for Quantitative Imaging
Penn State University
section
modify it to check if the second part exists
Code://explode from the : $fields = explode(":", $line, 2); echo "<b>$fields[0]</b>"; //checks if second part exists if (isset($fields[1])) echo " : $fields[1]"; echo "<br/>";Comment
Comment