Refactored the word wrapping

This commit is contained in:
Jack-Benny Persson 2014-07-28 10:55:29 +02:00
parent c80005de94
commit 4fe07c91e8

8
1stPara.php Normal file → Executable file
View File

@ -10,12 +10,6 @@ $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 (wordwrap($string, 60, "\n") . "\n");
foreach($strArray as $line)
{
print $line . "\n";
}
//print strip_tags($match[1]) . "\n";
?>