FastPHP adlı üyeden alıntı: mesajı görüntüle
<?php
header('Content-Type: text/html; charset=utf-8');
$json = file_get_contents("https://twitter.com/trends?pc=true&personalized=false&show_context=true&src=module&woeid=23424969");
$json = json_decode($json);
preg_match_all('/data-trend-name="(.*?)"/', $json->module_html, $fastphp);
$rastgelegundem = $fastphp[1][array_rand($fastphp[1])];
echo $rastgelegundem;
?>
Çok teşekkür ederim.

--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 04:16:17 -->-> Daha önceki mesaj 04:01:41 --

FastPHP adlı üyeden alıntı: mesajı görüntüle
<?php
header('Content-Type: text/html; charset=utf-8');
$json = file_get_contents("https://twitter.com/trends?pc=true&personalized=false&show_context=true&src=module&woeid=23424969");
$json = json_decode($json);
preg_match_all('/data-trend-name="(.*?)"/', $json->module_html, $fastphp);
$rastgelegundem = $fastphp[1][array_rand($fastphp[1])];
echo $rastgelegundem;
?>
Verdiğiniz kodla,
$message = "zz";
post kısmını yani tam olarak şunu istiyorum.
"zz" diye post atmayacak,
gündemden HER seferinde farklı tag'ı çekerek şöyle olacak "benimyazdıgımpost #gundemdeki tag"
bu şekilde olacak
ALLAH razı olsun şimdiden, birde bunu randomlu olarak yapabilir miyim? basit ise yardımcı olursanız yani şunu istiyorum
"benimyazdıgımpost #gundemdeki tag 324"

324 yazdıgım yere her seferinde farklı rakamlar gelmesi için ne yapabilirim,çok teşekkürler