- var_dump: documentation ( source)
<?php
$variableName = 'MyVariable';
// Create new variable with the name defined in variable $variableName
$stack_escrow_balance = 100;
$type = 'escrow';
$varstring = '$stack_'.$type.'_balance';
var_dump(${$varstring});