I have a form made with the Drupal Form API, there is a date field which result I want to output to the user in an email.
I'm only getting array as output, so how do I access the keys and values?
This is my code:
$mailText .= 'Selected date: ' . preg_replace("/(\n|\r)/s", '', $form_state['return_value']['myform_date']);
$x = array('foo' => 'bar')
, for example, you can get the value offoo
with$x['bar']
– Clive♦ Feb 9 at 16:07