I'm processing a form that submits to my PHP page. The request data looks like this:
Array
(
[submission_id] => 363112875894117228
[name] => Array
(
[0] => Tom
[1] => Jones
)
[address] => Array
(
[0] => 21 Jump St
[1] =>
[2] => Sydney
[3] => NSW
[4] => 2000
[5] => Australia
)
[cellularnumber] => Array
(
[0] => (041) 234-5678
)
)
I'm trying to set a variable that contains the value of the first name, last name etc. For example I would like to set a variable:
$firstName
that is equal to Tom.
I'm familiar with using this syntax:
$firstName = $_POST['name']
but not sure how to handle the array in this case?