Undefined offset: 1 php
<pre><code>    $response = curl_exec($ch);
    curl_close($ch);
    //Split the HEADERS and BODY 
    list($h, $EALOGIN) = explode("\r\n\r\n", $response, 2);
    $r = explode("\r\n", $h);

    //EASW Key
    $s = explode(":", $r[7]);
    $t = explode(";", $s[1]);
    $EASW_KEY = $t[0]; 
    //Session Key
    $m = explode(":", $r[8]);
    $n = explode(";", $m[1]);
    $EASF_SESS = $n[0];
    //nuc
    $a = explode("&lt;nucleusId&gt;", $EALOGIN);
    $b = explode("&lt;/nucleusId&gt;", $a[1]);
    $NUC = $b[0];
</code></pre>

<p>The offline refers to the "$a" line.
I don't understand the error.
How can i solve it?</p>
