How do I do this without eval?
$collection holds the name of the array that I want to put $path into.PHP Code:eval('PAMWF::'.$collection.'[] = $path');
EDIT: Nevemind - got it.
PHP Code:PAMWF::${$collection}[] = $path;
| SitePoint Sponsor |

How do I do this without eval?
$collection holds the name of the array that I want to put $path into.PHP Code:eval('PAMWF::'.$collection.'[] = $path');
EDIT: Nevemind - got it.
PHP Code:PAMWF::${$collection}[] = $path;
Bookmarks