RsD0p9BK
1/23/2015 - 5:57 AM

arrays.php

{assign var='icon' value=','|explode:"dir,doc,exe"}

	
// This works in Smarty v3:
{$system=['freebsd','windows','macosx','linux']}

// http://stackoverflow.com/questions/2244319/how-to-assign-an-array-within-a-smarty-template-file