Skip to content

Instantly share code, notes, and snippets.

@nikita2206
Last active January 8, 2017 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikita2206/dc512860e896c1ec2281cb7ca54bd544 to your computer and use it in GitHub Desktop.
Save nikita2206/dc512860e896c1ec2281cb7ca54bd544 to your computer and use it in GitHub Desktop.
<?php
$ar = [["can't human readable strings be here?" => 123]];
xdebug_break();
// if you try to inspect the 123 value, you'll see that PHPStorm calls property_get with $ar[0]['can't human readable strings be here?']
// obviously it could omit the quotes in this case, but then I could include ] (sq. braket) in my key and property_get would break again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment