| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2000-02-11 20:17 UTC] andrei at cvs dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
Skript below shows result of lpstat but without newlines. It seems that explode doesn't work and $result is copied to $view[0] as is. The same problem was with $view split("\n",$result) and similar with nl2br. <? $result = passthru("lpstat -t"); $view = explode("\n",$result); for($i=0; $i<sizeof($view); $i++){ echo "$view[$i]" . "<br>\n"; } ?>