Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $files = array_diff(scandir("plug/lol/"), ['.','..']);
- $array = [];
- $lole = [
- "count" => count($files)
- ];
- //echo json_encode($lole);
- foreach($files as $key=>$lol){
- $array = [
- "response" => [
- "count" => 16,
- "items" => [
- [
- "id"=>"$lol",
- "is_dir"=> "true"
- ],
- ] ]];
- print_r($array);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement