0

I have the next array($columsData):

Array
(
    [avatar] => Array
        (
            [title] => Avatar
            [sort] => 
            [no_html_escape] => 1
        )
    [title] => Array
        (
            [title] => Title
            [sort] => 
        )
)

And how can i make this array like this:

Array
(
    [id] => Array
        (
            [title] => Id
            [no_html_escape] => 1
        )
    [avatar] => Array
        (
            [title] => Avatar
            [no_html_escape] => 1
        )
    [title] => Array
        (
            [title] => Title
            [no_html_escape] => 1
        )
)

Thank you.

NullUserException
  • 83,810
  • 28
  • 209
  • 234
Alex Pliutau
  • 21,392
  • 27
  • 113
  • 143

1 Answers1

0
$columsData['id']['title'] = 'id';
$columsData['id']['no_html_escape'] = 1;
Alex Pliutau
  • 21,392
  • 27
  • 113
  • 143