Skip to content

Feature request: Transform PHP Object to Array and back #52

@gebi84

Description

@gebi84

I tried it in PHPStorm with macros, but that doesn't work:

it would be nice to transform
$foo->test = 'ba';
to
$foo['test'] = 'bla';
and backwards.

here my regex:
\-\>([\w]+) replace \[\'$1\'\]
and
\[[\"\']([\w]+)[\"\']\] replace ->$1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions