[[SomeSnippet? ¶m=`array(’foo’, ’bar’)
Not sure you can pass an array, but what you can do is pass a comma separated list and turn it into an array in the snippet.
¶m=`1,2,3,4`
then in the snippet use explode (or some other equivalent)
explode(",", $param);
then $parem[’0’] will be 1 and $param[’1’] will be 2 etc...
i need associavite arr
¶m=`key,value||key2,value2||key3,value3`
$paramArray = explode("||", $param); foreach($paramArray as $p){ $n = explode(",", $p); $paramAssoc[$n['0']] = $n['1']; }
Array ( [key] => value [key2] => value2 [key3] => value3 )
[[SnippetName? &string=`Color1=Red&Color2=Blue&Color3=Green`]]
ColorArray= array(); parse_str($string,$ColorArray);
This discussion is closed to further replies. Keep calm and carry on.