Skip to content

Instantly share code, notes, and snippets.

@davidjmemmett
Created October 27, 2011 15:34
Show Gist options
  • Save davidjmemmett/1319910 to your computer and use it in GitHub Desktop.
Save davidjmemmett/1319910 to your computer and use it in GitHub Desktop.
Can't believe PHP lets you do this...
<?php
$foo = 'This, yes, is insane...';
${$foo} = 1;
${'This gets worse...'} = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment