Wrap lines at 60 chars
This commit is contained in:
parent
58abf65147
commit
c80005de94
@ -9,6 +9,13 @@ if (!isset($argv[1]))
|
||||
$url = $argv[1];
|
||||
$data = shell_exec("curl -s $url");
|
||||
preg_match("/\<p\>(.*)\<\/p\>/", $data, $match);
|
||||
$string = strip_tags($match[1]);
|
||||
$strArray = explode("\n", wordwrap($string, 60));
|
||||
|
||||
print strip_tags($match[1]) . "\n";
|
||||
foreach($strArray as $line)
|
||||
{
|
||||
print $line . "\n";
|
||||
}
|
||||
|
||||
//print strip_tags($match[1]) . "\n";
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user