smerny Posted March 5, 2012 Share Posted March 5, 2012 $form_bonus = array( "Attacker" => array( "Ashwin" => array( "normal" => 1.15, "rps" => 1.38), "Cordelon" => array( "normal" => 1.15, "rps" => 1.38), "Mersan" => array( "normal" => 1.15, "rps" => 1.38), "Phlanixian" => array( "normal" => 1.195, "rps" => 1.494), "Slythe" => array( "normal" => 1.15, "rps" => 1.38) ), "Defender" => array( "Ashwin" => array( "normal" => 1.15, "rps" => 1.38), "Cordelon" => array( "normal" => 1.15, "rps" => 1.38), "Mersan" => array( "normal" => 1.15, "rps" => 1.38), "Phlanixian" => array( "normal" => 1.15, "rps" => 1.38), "Slythe" => array( "normal" => 1.15, "rps" => 1.38) ) ); echo "<pre>".print_r($form_bonus)."</pre>"; output: 1 what am i missing here? Quote Link to comment https://forums.phpfreaks.com/topic/258291-problem-with-a-multi-level-array/ Share on other sites More sharing options...
Pikachu2000 Posted March 5, 2012 Share Posted March 5, 2012 You're echoing the print_r(). print_r() returns true on success, or false on failure. Quote Link to comment https://forums.phpfreaks.com/topic/258291-problem-with-a-multi-level-array/#findComment-1324017 Share on other sites More sharing options...
smerny Posted March 5, 2012 Author Share Posted March 5, 2012 bleh... been doing this too long today thanks Quote Link to comment https://forums.phpfreaks.com/topic/258291-problem-with-a-multi-level-array/#findComment-1324018 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.