get_included_files() (funzione PHP) restituisce, sotto forma di array, i file inclusi nello script tramite le funzioni include(), include_once(), require() e require_once().
tips&tricks
Sintassi
get_included_files()
| parametro | descrizione |
|---|---|
| – | Nessuno |
Esempi
include 'test1.php';
include 'test2.php';
print_r(get_included_files());
/* RISULTATO
Array
(
[0] => test1.php
[1] => test2.php
)
*/
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment