By using var_dump($_POST);
, I'm getting the following output:
array(2)
{
["data"] => array(2)
{
["title"] => "XXX"
["server"] => "XXXXXX"
}
["Itemid"] => "101"
}
My aim is to get the server
value. I can easily achieve this by using:
$_POST['data']['server'];
Having snooped around, I found that using the following can be used:
$array = $input->post->getArray(array());
$server = $array['data']['server'];
Is this the best approach for JInput
or is there something better?