[Solved] How can I transfer data from php back to HTML?


$files = glob();

<img src="https://stackoverflow.com/questions/34179608/$files[0]" />
<img src="$files[1]" />

You can use forloop to show all images.

<?php for($i=0;$i<count($files);$i++){ ?>
<img src="https://stackoverflow.com/questions/34179608/<?php echo $files[$i] ?>" />
<?php } ?>

3

solved How can I transfer data from php back to HTML?