I would really need to get the params of my snippet in an array. I want to use all the params starting with a defined prefix to create a dynamic placeholder system in my code.
I tried to use foreach with $_POST... but it don’t work. Maybe it’s my regex syntax that is wrong : i always had troubles with it. Anyway, some help would be appreciated here!
Thanks,
Blaise
Blaise Bernier
www.medialdesign.com - Solutions for small business, hosting, design and more!
Gonna try this right away! Thanks a lot!
Blaise Bernier
www.medialdesign.com - Solutions for small business, hosting, design and more!
Damn! So simple! BTW, with func_get_args() you should do :
$params = func_get_args();
foreach ($params[1] as $name => $value) {
echo '$' . $name . ' == ' . $value;
}
Blaise Bernier
www.medialdesign.com - Solutions for small business, hosting, design and more!