Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
php_cli_ex [2011-10-24 13:42]
Joakim Forsgren created
php_cli_ex [2011-10-24 13:44]
Joakim Forsgren
Line 36: Line 36:
 } }
 echo "\n"; echo "\n";
 +// För att läsa in en sträng utan radbrytning på slutet
 +$str = substr(fgets($handle),0,-1);
 +echo $str;
 </code> </code>