title: Search only IP in log file and save in array
body: <p>I use nmap to scan availabe IP in my network, I want to use PHP scan only IP Address and save only IP Address in array.</p>
  
  <p>here is text file out put.</p>
  
  <pre><code>Starting Nmap 6.40 ( http://nmap.org ) at 2013-10-15 22:07 SE Asia Standard Time
  Nmap scan report for 110.77.144.25
  Host is up (0.042s latency).
  Nmap scan report for 110.77.144.27
  Host is up (0.051s latency).
  Nmap scan report for 110.77.144.88
  Host is up (0.033s latency).
  Nmap scan report for 110.77.144.90
  Host is up (0.037s latency).
  Nmap scan report for 110.77.144.91
  Host is up (0.038s latency).
  Nmap scan report for 110.77.144.92
  Host is up (0.034s latency).
  Nmap scan report for 110.77.144.93
  Host is up (0.035s latency).
  Nmap scan report for 110.77.144.137
  Host is up (0.063s latency).
  Nmap scan report for 110.77.144.139
  Host is up (0.037s latency).
  Nmap scan report for 110.77.144.145
  Host is up (0.064s latency).
  Nmap scan report for 110.77.144.161
  Host is up (0.074s latency).
  Nmap done: 256 IP addresses (42 hosts up) scanned in 14.44 seconds
  </code></pre>
  
  <p>I want output save in array like this</p>
  
  <pre><code>$available = array("110.77.233.1", "110.77.233.2", 
                     "110.77.233.3", "110.77.233.4",
                     "110.77.254.16");
  </code></pre>
  
  <p>How can I do with PHP?</p>