![]() |
Call what is to print from the array ?
Good day to you all,
the following code read a directory recurrently and put the files and folders in an array and I print the array. I wonder if there is a way to choose which part of the array to print Ex : print_r(recur_dir('Art')['level' = 1]['name']); Here is my code PHP Code:
Thanks ! |
PHP Code:
PHP Code:
|
PHP does not support function dereferencing (func()['key']), so you need to do what Xenon suggested :)
|
| All times are GMT. The time now is 04:21 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0