Skip to content

Instantly share code, notes, and snippets.

@anytizer
Created March 26, 2014 14:13
Show Gist options
  • Save anytizer/9784140 to your computer and use it in GitHub Desktop.
Save anytizer/9784140 to your computer and use it in GitHub Desktop.
Dynamic Variables
<?php
$friend = 'John Doe';
$relation = 'friend';
echo $relation, ': ', $$relation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment