02 Includes 02.01 Random Image

02 Includes 02.01 Random Image

The Detroit Lions logo.
Detroit Lions

$i = random_int(0, count($images)-1);

        
        1        
        

print_r($images);

        
        Array
(
    [0] => Array
        (
            [file] => packers
            [caption] => Green Bay Packers
        )

    [1] => Array
        (
            [file] => lions
            [caption] => Detroit Lions
        )

    [2] => Array
        (
            [file] => vikings
            [caption] => Minnesota Vikings
        )

    [3] => Array
        (
            [file] => bears
            [caption] => Chicago Bears
        )

)
Array
(
    [0] => 300
    [1] => 250
    [2] => 3
    [3] => width="300" height="250"
    [bits] => 8
    [mime] => image/png
)