Welcome Guest, Not a member yet? Register   Sign In
Parser for Multi-dimensional Array with the same key
#2

Quote:The Parser class uses an associative array internally, to accumulate pseudo-variable settings until you call its render(). This means that your pseudo-variable names need to be unique, or a later parameter setting will over-ride an earlier one.

https://codeigniter.com/user_guide/outgo...arser.html

You will need to make your keys unique.

Code:
$data = [
    'person_name' => 'John',
    'partner' => [
        ['partner_name' => 'Mary'],
    ]
];
Reply


Messages In This Thread
RE: Parser for Multi-dimensional Array with the same key - by craig - 03-29-2021, 04:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB