php array ignoring values
Posted: Wed Feb 03, 2010 8:32 am
I have created the following array.
$a_random = array( '<random-all>', '<random>', '<random-all-or>', '<random-1>',
'<random-all-1>','<random-all-2>','<random-all-3>','<random-all-4>','<random-all-5>','<random-all-6>',
'<random-all-7>','<random-all-8>','<random-all-9>','<random-all-10>',
'<random-or-1>','<random-or-2>','<random-or-3>','<random-or-4>','<random-or-5>','<random-or-6>',
'<random-or-7>','<random-or-8>','<random-or-9>','<random-or-10>'
);
However, when I print_r the array none of the values have been inserted into the array.
It has to do with the '<' '>' characters.
I need those specific values with the '<' '>' to be in the array. How can I force the array to populate them?
$a_random = array( '<random-all>', '<random>', '<random-all-or>', '<random-1>',
'<random-all-1>','<random-all-2>','<random-all-3>','<random-all-4>','<random-all-5>','<random-all-6>',
'<random-all-7>','<random-all-8>','<random-all-9>','<random-all-10>',
'<random-or-1>','<random-or-2>','<random-or-3>','<random-or-4>','<random-or-5>','<random-or-6>',
'<random-or-7>','<random-or-8>','<random-or-9>','<random-or-10>'
);
However, when I print_r the array none of the values have been inserted into the array.
It has to do with the '<' '>' characters.
I need those specific values with the '<' '>' to be in the array. How can I force the array to populate them?