How do I do this without eval?

PHP Code:
eval('PAMWF::'.$collection.'[] = $path'); 
$collection holds the name of the array that I want to put $path into.

EDIT: Nevemind - got it.

PHP Code:
PAMWF::${$collection}[] = $path