Re: [PHP] array encapsulate

2003-09-12 Thread John W. Holmes
Bill wrote: How do I know it won't just assume that $_POST["detail"][11][116] means the 116th character in the string $_POST["detail"][11]? Because $_POST['detail'][11] is an array (or it should be). If you're in doubt, make sure it is with is_array(). -- ---John Holmes... Amazon Wishlist: www.a

Re: [PHP] array encapsulate

2003-09-12 Thread Bill
How do I know it won't just assume that $_POST["detail"][11][116] means the 116th character in the string $_POST["detail"][11]? "Larry E . Ullman" wrote: > > if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { > > > > How can I encapsulate the array so it is a multi-dimensional ar

Re: [PHP] array encapsulate

2003-09-12 Thread Larry E . Ullman
if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not just a string length? I'm not exactly sure what you're array structure is but that syntax is correct. $_POST['key1']['key2']... Larry -- PHP General Mai

[PHP] array encapsulate

2003-09-12 Thread Bill
I'd like to do this, but it produces an error: if ($_POST{["detail"][11][116]} && !$_POST{["detailtext"][19][114]}) { so I'm left doing this if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not just a strin