func_get_args() (funzione PHP) restituisce un array con la lista degli argomenti della funzione. Se chiamata fuori dalla funzione, restituisce false
tips&tricks
Sintassi
func_get_args()
| parametro | descrizione |
|---|---|
| – | nessuno |
Esempi
function nome_funzione() {
print_r(func_get_args());
}
nome_funzione("A", "B", "C");
/* RISULTATO
Array
(
[0] => A
[1] => B
[2] => C
)
*/
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment