Hi
How can I seperate pages whose title contains a certain string from an array of pages?
So with
$results = $pages->find("template=template_name");
I get an array of all the pages.
Now I should like to extract only the pages that contain the string 'Nr. 7' in the title.
How can I do this?
Is there a direct way with strpos()?
EDIT:
Found the solution:
$tickets = array();
foreach ($results as $result){
if (strpos($result->title, 'Nr. 7') !== false){
$tickets[] = $result;
}
}