Remove new lines from tweets. Fixes #37

This commit is contained in:
Jamie Kitson
2014-01-16 15:37:07 +00:00
parent b69474bfb9
commit 4f60ecd721

View File

@@ -5,7 +5,7 @@ $foo = json_decode($json_string);
for ($i=0; $i<count($foo); $i++){
echo $foo[$i]->id_str . "|";
echo $foo[$i]->created_at . "|";
$tweet = $foo[$i]->text;
$tweet = str_replace("\n", " ", $foo[$i]->text);
if (!empty($foo[$i]->entities->urls)) {
foreach($foo[$i]->entities->urls as $u) {
//print_r($u->url);