[eluser]Dagobert Renouf[/eluser]
Hello everyone,
I'm currently using config files for my application, and I set them as array.
- My defaut config file with all fields possible and associated values
- The user config file with some fields associated with their values
I need to create, from theses two arrays, an array with the user values in it AND if some field is not specified, then insert the default value.
Code:
//array config default
[label] => ""
[type] => input
[rules] => ""
[prep] => ""
[display] => 1
[thumbs] => ""
//array config user
[label] => "email"
[type] => input
[rules] => "required"
// array I need
[label] => "email"
[type] => input
[rules] => "required"
[prep] => ""
[display] => 1
[thumbs] => ""