kbit
asked on
Get value from array
Hi,
When I submit a form, I get the following post
Array ( [images4ex] => Array ( [0] => 3_1817c6185d51a12cc484528e d90a165d.j pg [1] => 3_8e84f9748b3eb9bc5a5cd759 2c7404c9.j pg [2] => 3_7b9dac87facd421e621feae5 151eba77.p ng [3] => 3_96b3c91f2cc8120ddcaa5c8e 5a0f7983.j pg [4] => 3_a57ea66f63eff04bfac4c9ca 86de8f96.j pg [5] => 3_35bf143fa072e04b0bc77ca8 1eb32457.j pg [6] => 3_d3e8a3ff8e0c951f712f1f25 b84f0aa5.j pg [7] => 3_c464d2dfda209006f93f820e 54e8a577.j pg ))
Can someone please provide the exact PHP required to give me the first JPG, assigned to own variable, something like:
echo $MainImage;
Expected Result:
3_1817c6185d51a12cc484528e d90a165d.j pg
Many thanks and apologies for such a beginners question!
When I submit a form, I get the following post
Array ( [images4ex] => Array ( [0] => 3_1817c6185d51a12cc484528e
Can someone please provide the exact PHP required to give me the first JPG, assigned to own variable, something like:
echo $MainImage;
Expected Result:
3_1817c6185d51a12cc484528e
Many thanks and apologies for such a beginners question!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome.
ASKER