,</span>
    <span class="s1">&#39;ttl&#39;</span>  <span class="o">=&gt;</span> <span class="mi">3600</span>
<span class="p">));</span>
<span class="nv">$domain</span><span class="o">-&gt;</span><span class="na">addRecord</span><span class="p">(</span><span class="nv">$cRecord</span><span class="p">);</span>

<span class="c1">// add MX record</span>
<span class="nv">$mxRecord</span> <span class="o">=</span> <span class="nv">$domain</span><span class="o">-&gt;</span><span class="na">record</span><span class