technoesh adlı üyeden alıntı

function randomTweet($tweet) {
$tweet = explode('
', $tweet);
$text = $tweet[rand(0, (count($tweet) - 1)) ];
if (strpos($text, '
')) {
$text = str_replace('
', '', $text);
}
return $text;
}


Yukarıdaki fonksiyonu verdiğim kodlarla değiştirip bir daha deneyin.


Olmadı hocam :confused: