php help dynamic variable?

Ilyakar

New member
hi, could you help me with this code:

$source1 = 'hello';
$cnt = 1;
$print = $source$cnt;
print $print;

I'm trying to dynamically build the variable $source1, but i cant seem to get it right. thanks
 
Back
Top