1
I have a function that takes as parameter an array, for example:
$args = array(
"foo" => "value"
);
oneFunction( $args );
function oneFunction( $array ){
$default = array(
"foo" => "foo",
"bar" => "bar"
);
//mescla valores
$array = mesclaArrays($default, $array);
//nesse exemplo, a saída deve ser
//array(
// "foo" => "value",
// "bar" => "bar"
//);
}
Is there a native function for this or is it necessary for me to create my own?
Shit, why didn’t I think of it before. It was so much simpler that I was curling up and creating a giant function. I adapted to my needs and gave it right. Thank you very much friend
– lucasDotCom