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? 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. 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 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
Archived
This topic is now archived and is closed to further replies.