Posts: 185
Location: print_r($serbia);
|
Yeah Multi-Dimensional array.
Look at the first example on php.net
btw you have an error on my example:
PHP Code:
if(in_array($key, $ar_fields)) {
$key = $value;
}
It needs to be double dollar sign in front of key if you want to change the value:
PHP Code:
if(in_array($key, $ar_fields)) {
$$key = $value;
}
Last edited by miki86; 11-08-2010 at 05:01 AM..
|