/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * SearchEntries * * Options: Values * --------------- * words * * @param array $options * @return bool */ { foreach($words as $word){ if(isset($options['limit']) && isset($options['offset'])) $search_result = array_merge($search_result,$this->GetEntries(array('word' => $word, 'sortBy' => $options['sortBy'], 'sortDirection' => $options['sortDirection'], 'limit' => $options['limit'], 'offset' => $options['offset']))); } // unique multidimential array for entryid $new[] = $search_result[$i]; // key and value goes into array for testing } } //print_r($new); return $new; }
Comments
