<?php

$first = "second";
$second = "first";

echo $$first; // $ + valor de first (second) => $second => imprime "first"