Skip to content

Instantly share code, notes, and snippets.

@djaney
Last active December 26, 2015 16:09
Show Gist options
  • Save djaney/7178376 to your computer and use it in GitHub Desktop.
Save djaney/7178376 to your computer and use it in GitHub Desktop.
<?php
$variable = 'number';
$number = 10;
echo $$variable; // this will output "10" because you are referring to the variable called "number"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment