Ustag Posted May 31, 2011 Share Posted May 31, 2011 Hi I have an array like this:$prod_q = array('0','1');and when I make print_r($prod_q); I get this:Array ( [0] => '0','1' )Why do I not get this:Array ( [0] => '0',[1] => '1' ) Link to comment Share on other sites More sharing options...
thescientist Posted May 31, 2011 Share Posted May 31, 2011 maybe try double quotes? Link to comment Share on other sites More sharing options...
Ustag Posted May 31, 2011 Author Share Posted May 31, 2011 same problem:Array ( [0] => "0","1" ) Link to comment Share on other sites More sharing options...
thescientist Posted May 31, 2011 Share Posted May 31, 2011 oddly enough, I just tried this: <?php$prod_q = array('0','1');print_r($prod_q);?> and got the expected output. Array ( [0] => 0 [1] => 1 ) Link to comment Share on other sites More sharing options...
Ustag Posted May 31, 2011 Author Share Posted May 31, 2011 Thank you, I believe the problem lies in memht portal then. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.