Skip to content

Instantly share code, notes, and snippets.

@ilyasozkurt
Created February 19, 2023 12:31
Show Gist options
  • Save ilyasozkurt/cc342800a882528c65f152f414a58111 to your computer and use it in GitHub Desktop.
Save ilyasozkurt/cc342800a882528c65f152f414a58111 to your computer and use it in GitHub Desktop.
<?php
$files = glob('images/*.{jpg,jpeg,png,gif,svg,webp}', GLOB_BRACE);
foreach ($files as $file) {
echo '<img src="' . $file . '" />';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment