Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $attributeMap = [
- 'name' => 'Mr. Bean',
- 'phone' => '12345' ,
- 'pets' => [
- [
- 'name'=>'goofy',
- 'family'=>'dog'
- ],
- [
- 'name'=>'twitty',
- 'family'=>'dinosaur'
- ]
- ]
- ];
- $filter = ['name','phone','pets' => ['name']];
- // i wanted to use the $filter to make attributeMap look like this:
- // ['name'=>'Mr. Bean', 'phone' => '12345', 'address'=>['city'=>'hogs']]
- // what i was only able to do is to create a 1 dimensional filter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement