Advertisement
Guest User

Untitled

a guest
Mar 11th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?
  2. $files = array_diff(scandir("plug/lol/"), ['.','..']);
  3. $array = [];
  4. $lole = [
  5. "count" => count($files)
  6. ];
  7. //echo json_encode($lole);
  8. foreach($files as $key=>$lol){
  9. $array = [
  10. "response" => [
  11. "count" => 16,
  12. "items" => [
  13. [
  14. "id"=>"$lol",
  15. "is_dir"=> "true"
  16. ],
  17. ] ]];
  18. print_r($array);
  19. }
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement