dimanche 15 mai 2016

Php, how to get parameters as a string (as I got?)

example:

$this->method ('1', 2, array(1,2,3), $this);

function method()
{

in method(), I want to get parameters just as I got them. I could use this:

foreach (func_get_args() as $item)

but thats not good this time. I simply want to get this string:

'1', 2, array(1,2,3), $this

is there any way?





Aucun commentaire:

Enregistrer un commentaire