Where does “.” (dot) come from when using PHP ´scandir´
问题 I'm a bit confused. I'm building a PHP function to loop out images in a specified dir. PHP $dir = "bilder/".$objekt[0]['objekt_nr']."/thumbnail/"; $thumbnails = scandir($dir); print_r($thumbnails); foreach ($thumbnails as $value) { echo "<img src='".$dir.$value. "'>"; } array ( [0] => . [1] => .. [2] => bjornc.jpg [3] => test_bild3.jpg ) HTML <img src='bilder/22159/thumbnail/.'> <img src='bilder/22159/thumbnail/..'> <img src='bilder/22159/thumbnail/bjornc.jpg'> <img src='bilder/22159