= 0) && ($passedNumber < count($quotations) ) ) { $quoteNumber = $passedNumber; // used passed number } else { $quoteNumber = rand(0, ( count($quotations) - 1) ); // random number from 0 to one less than the array length } /* now let's output the page's HTML! note that PHP code is being echo'd in all of these: - tag - CSS properties in the <style> block - HTML tags - HTML comments */ ?><!DOCTYPE html> <html> <head> <!-- meta tags and title --> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Quote by <?= $quotations[$quoteNumber]["attribute"] ?>

(get new quote)