Created
April 2, 2021 01:07
-
-
Save muskie9/a72a138c8dc8a197a1e9bf4283862f95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$albumData = [ | |
[ | |
'Title' => 'Album 1 Title', | |
'Image' => 'img/foo-bar.jpg', | |
], | |
[ | |
'Title' => 'Album 2 Title', | |
'Image' => 'img/foo-bar-2.jpg', | |
], | |
]; | |
foreach($albumData as $data){ | |
//your output block | |
$data['Title']; // holds the title of the current album being looped over | |
$data['Image']; // holds the image path of the current album being looped over | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment