Skip to content

Instantly share code, notes, and snippets.

@oss6
Created September 1, 2015 13:24
Show Gist options
  • Save oss6/9ed9a38458d9d2bb5a57 to your computer and use it in GitHub Desktop.
Save oss6/9ed9a38458d9d2bb5a57 to your computer and use it in GitHub Desktop.
PHP Storm: replace array access with object access
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