Created
September 1, 2015 13:24
-
-
Save oss6/9ed9a38458d9d2bb5a57 to your computer and use it in GitHub Desktop.
PHP Storm: replace array access with object access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NB: Ensure that the "Regex" checkbox is checked. | |
In the "replace what" bar (replace single-quotes with double-quotes if necessary): | |
\$var_name\['(.+?)'] | |
In the "replace to" bar: | |
\\$var_name->$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment