Search inside title and body &lt;div class="views-row views-row-1 views-row-odd views-row-first"&gt;

  &lt;div class="views-field views-field-name"&gt;        
  &lt;span class="field-content"&gt;&lt;a href="/committees-groups/test-committee1"&gt;Test Committee 1&lt;/a&gt;&lt;/span&gt; 
  &lt;/div&gt;  
  &lt;div class="views-field views-field-description"&gt; &lt;div class="field-content"&gt;&lt;p&gt;Test Committee one description&lt;/p&gt;&lt;/div&gt;  &lt;/div&gt; 

  &lt;/div&gt;
  &lt;div class="views-row views-row-2 views-row-even views-row-first"&gt;

  &lt;div class="views-field views-field-name"&gt;        
  &lt;span class="field-content"&gt;&lt;a href="/committees-groups/test-committee2"&gt;Test Committee 2&lt;/a&gt;&lt;/span&gt; 
  &lt;/div&gt;  
  &lt;div class="views-field views-field-description"&gt; &lt;div class="field-content"&gt;&lt;p&gt;Test Committee 2 description&lt;/p&gt;&lt;/div&gt;  &lt;/div&gt; 

  &lt;/div&gt;


This is the array string i got when i do a print_r($header); in my template.

&lt;?php           
                    $doc = new DOMDocument();
                    $doc-&gt;loadHTML($header);
                    $links = array();
                    $arr = $doc-&gt;getElementsByTagName("a"); 
                    foreach($arr as $item) { 
                    $href =  $item-&gt;getAttribute("href");
                    $text = trim(preg_replace("/[\r\n]+/", " ", $item-&gt;nodeValue));
                    $links[$text] = $href;
                    }
                    $serch = $_GET['combine'];
                    $arr = array();
                    $arr =  explode(" ", $serch);
                    foreach($links as $key =&gt; $value) { ?&gt;
                    &lt;?php if ( stripos( $value, $arr[0] ) !== false ) {?&gt;
                    &lt;div class="views-row"&gt;&lt;a href="&lt;?php echo $value; ?&gt;"&gt;&lt;?php echo $key; ?&gt;&lt;/a&gt;&lt;/div&gt;
                    &lt;?php } } 
            ?&gt;


This is my code to print the result and search the link title in the array. I need to add the body field (views-field-description) to result display and need to search the keyword ($serch = $_GET['combine'];) inside the body (views-field-description) content.

The title search works fine for me. How can i add it.
It is much more easier to implement this using views module. In this tutorial, you can ask user an input, and search on any field in the content type.