Hello there,
I have to following function:
$aChecked = explode(',', $checked);
if $checked contains something like 'true,false,false,true' it returns an array with the values true and false.
But if $checked only contains e.g. 'true'
It returns an array with the value 1. $aChecked[0] = 1 (in case of 'false' it returns 0).
Am I doing something wrong? Or how can I get also true if I'm only exploding true or false?
The One And Only KryptoS
I have to following function:
$aChecked = explode(',', $checked);
if $checked contains something like 'true,false,false,true' it returns an array with the values true and false.
But if $checked only contains e.g. 'true'
It returns an array with the value 1. $aChecked[0] = 1 (in case of 'false' it returns 0).
Am I doing something wrong? Or how can I get also true if I'm only exploding true or false?
The One And Only KryptoS