Function 1 : array_rand Get a random variable in an array. $sites = array (“google.com”,”Bing”, “yahoo.com”, “php.net”, “apple.com”); $k = array_rand($sites); echo $sites[$k]; Function 2:…
Leave a CommentTutorials focused on Web Development, ReactJS, JavaScript, PHP, Database Design, Devops
Function 1 : array_rand Get a random variable in an array. $sites = array (“google.com”,”Bing”, “yahoo.com”, “php.net”, “apple.com”); $k = array_rand($sites); echo $sites[$k]; Function 2:…
Leave a Comment