diff --git a/json-to-text.php b/json-to-text.php index 95082fc..c8308b9 100755 --- a/json-to-text.php +++ b/json-to-text.php @@ -5,7 +5,7 @@ $foo = json_decode($json_string); for ($i=0; $iid_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);