Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- charly@Victoria> php test.php ~
- var tasoeur=['Pictures/269581_2249948327213_1203372169_2724067_707101_n.jpg','Pictures/Bibliothèque Photo Booth','Pictures/IMG_0166.JPG','Pictures/IMG_0167.JPG','Pictures/IMG_0168.JPG','Pictures/IMG_0169.JPG','Pictures/IMG_0170.JPG','Pictures/P1100757.JPG','Pictures/iChat Icons','Pictures/iPod Photo Cache','Pictures/krilin.jpg','Pictures/victoria.jpg'];
- charly@Victoria> cat test.php ~
- <?php
- $arr=glob('Pictures/*');
- ?>
- var tasoeur=[<?php print implode(',',array_map(function($a){ return '\''.$a.'\''; },$arr)); ?>];
- charly@Victoria>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement