title: dealing with arrays in laravel
body: <p>I'm trying to use the Amazon AWS SDK to use SES email functionality, the requirements for that function is quite nasty, it just doesn't look right how I'm doing it although it works.</p>
  
  <p><strong>Function Reference</strong>
  <a href="http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.Ses.SesClient.html#_sendEmail" rel="nofollow">http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.Ses.SesClient.html#_sendEmail</a></p>
  
  <pre><code>$ses-&gt;sendEmail(array(
      'Source' =&gt; 'no-reply@test.com',
      'Destination' =&gt; array('ToAddresses' =&gt; $to),
      'Message' =&gt; array(
          'Subject' =&gt; array('Data' =&gt; $subject),
          'Body' =&gt; array('Text' =&gt; array('Data' =&gt; $message)),
      ),
  ));
  </code></pre>
  
  <p>I see this blog post here uses dot notation, how can I do similar as Laravel does seem to work this way at least for retrieving the config.
  <a href="http://www.alexkorn.com/blog/2011/04/sending-email-aws-php-with-amazonses/" rel="nofollow">http://www.alexkorn.com/blog/2011/04/sending-email-aws-php-with-amazonses/</a></p>
  
  <pre><code>$amazonSes-&gt;send_email(AWS_SES_FROM_EMAIL,
          array('ToAddresses' =&gt; array($to)),
          array(
              'Subject.Data' =&gt; $subject,
              'Body.Text.Data' =&gt; $message,
          )
  );
  </code></pre>