pavelpie
1/25/2017 - 9:46 AM

PHPStorm Regex Convert Array to Object Syntax

Convert code from using array syntax to object property syntax.

Find:
\$(\w+)\['([^']+)'\]

Replace:
\$$1->$2

Modified from https://edmondscommerce.github.io/php/phpstorm-regex-convert-array-to-object-syntax.html