foreach ($info as $i){
- if(!preg_match('/^Pages:[\s]*([0-9]+)/', $i, $matches)){
+ if(preg_match('/^Pages:[\s]*([0-9]+)/', $i, $matches)){
+ $this->no_of_pages = (empty($matches[1])) ? 0 : $matches[1];
continue;
}
- print_R($matches);exit;
- $ret = (empty($matches[1])) ? false : $matches[1];
- break;
+
}
}