You can also use glob
for this:
$dirname = "media/images/iconized/";
$images = glob($dirname."*.png");
foreach($images as $image) {
echo '<img src="'.$image.'" /><br />';
}
More Related Contents:
- How do I send to the current page? [closed]
- How can I send e-mail on form_submit?
- How do I post multiple parameters to a URL
- How to get “v.3.1.2” in string by regex php [duplicate]
- Jquery getting variable value [duplicate]
- How to send email out by php or javascript? [closed]
- Is there any array function by which I can get the expected result? [duplicate]
- How to check whether an array is empty using PHP?
- simple explanation PHP OOP vs Procedural?
- Whether to use “SET NAMES”
- Convert/cast an stdClass object to another class
- PHP – setcookie(); not working
- Twitter API returns error 215, Bad Authentication Data
- Assigning the return value of new by reference is deprecated
- HTML Scraping in Php [duplicate]
- Deleting all files from a folder using PHP?
- Inserting data using mysqli
- PHP CSV string to array
- Make var_dump look pretty [duplicate]
- Namespace in PHP CodeIgniter Framework
- How to convert a string to JSON object in PHP
- How to get a one-dimensional scalar array as a doctrine dql query result?
- Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)
- Laravel mail: pass string instead of view
- php strtotime “last monday” if today is monday?
- Having issue with matching rows in the database
- set session in database in php
- PHP Spread Syntax in Array Declaration
- show progressbar while loading pages using jquery ajax in single page website
- How to decode a JSON String with several objects in PHP?