<?php

/**
* Select Random Element From Array
*
* This script demonstrates how to select a random element from an array.
* 
* @author		Blaze Script
* @website		https://blazescript.com
* @date			January 2019
*/

// Variables
$desserts = array("ice cream","cookies","cake","pie","candy");

// This selects a random element from the array
$random_dessert = array_rand($desserts);

// Display the random element
echo $desserts[$random_dessert];

?>