- var_dump: documentation ( source)
- preg_match: documentation ( source)
- strip_tags: documentation ( source)
<?php
$res='<span style="font-size: 14px;">You are allowed to view <b>30</b> CVs per day. Today you have watched <b>3</b></span>
<iframe src="https://docs.google.com/viewer?url=http://files.seaemploy.com/resume/5ee9e75861dc2a8d0ddf4a3b5e05044b.doc&module=files&embedded=true" width="100%" height="100%" style="border: none;">
</iframe>';
preg_match('#watched (\d+)#', strip_tags($res), $match);
var_dump($match);;
//if(!preg_match('#watched (\d+)#', $res, $match) OR $match[1]>=30) throw new \Exception("Account limit", 2);