I have
$x = array('a', 'b', 'c');
I need to convert this to:
array (size=1)
'a' =>
array (size=1)
'b' =>
array (size=1)
'c' => boolean true
I need to create multidimensional array with single child\parent, first one will be the main\root key of array (it's 'a') the last one's value should be 'bool true', that's all i need
Pleas help, thank u
cis notbooleanit is astringyour example. You could do$x = array('a', 'b', 'c' => true);. Your question is unclear though.