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