How to use AWK command <p>Below is what I am trying to do:</p> <ol> <li><p>There is one PHP variable which contains a string.</p> <pre><code>$indexvalue='hotmail.com; spf=none (sender IP is 1.1.1.23)'; </code></pre></li> <li><p>I want to use an AWK command to get value <code>none</code> and IP value <code>1.1.1.23</code> in two different PHP variables.</p></li> </ol> <p>How can this be done?</p>