[SHARE] show what you knew!

Oleh alvinadjie 263 22 pada Rabu, 9 Des. 2015, 23:49:40


Kembali ke forum soal ini

#php #function-di-php #function-bagian-1


Petunjuk Diskusi
Silahkan masuk untuk berdiskusi



$valuable = array("Mamah","Papah","Nenek","Kakek","Mas","Adek");
sort ($valuable);
$random= rand(0,5);

$acak=$valuable{$random};


echo strtoupper($acak);
1 jempol


akhisyabab
99
4
· 8 tahun, 9 bulan yang lalu · 0 jempol

$family=array("mbae","bapak","ibu","adek");

sort($family);
echo join(", ",$family);

$acak = rand(0,count($family)-1);
echo "\n".strtoupper($family[$acak]);