[SOLVED] Associative Array in function Compilation error...
Posted: 08 August 2015, 01:23
Hello,
I don't understand why this part of code doesn't compile...
this associative array is not welcome
...
I don't understand why this part of code doesn't compile...
this associative array is not welcome
Code: Select all
function gettokenclass(&$tab)
{
var $zclass="token_".$tab['token_type'];
if ($tab['token_type']=='SAT') $zclass .="_".$tab['token_color'];
return $zclass;
}