General Community > Scripting Help

array elements into variables, how?

(1/1)

Anguz:
how can I convert the array elements into variables that aren't an array, using the key as the var name and the value as the new var's value?

thx in advance :)

Anguz:
nm, already found my answer :D

http://mx2.php.net/manual/en/language.variables.variable.php

Anguz:
this is even better...

http://mx2.php.net/manual/en/function.extract.php

Shoeb Omar:
ooh, that's a nifty function. >erased long explanation because unkown would die if he saw it :P>

Navigation

[0] Message Index

Go to full version