What is wrong with my array syntax?

anandamb

New Member
So I'm having a problem with arrays:\[code\]print_r($_POST['bank']);\[/code\]produces the following output:Array ( ['deposit'] => 30 ) However,\[code\]assert($_POST['bank']['deposit']==30);\[/code\]which immediately follows \[code\]print_r\[/code\], fails. I feel like an idiot, but could someone help me out? Since nothing is changing the value of \[code\]$_POST\[/code\], I suppose my syntax is wrong, but I can't see it for the life of me.
 
Back
Top