How can i specify that I’m setting the property $nAds
I was thinking to something like:
@set $nAds
but it didn’t worked
This is what I’m using
/**
* Extract the number of ads of a province and set the property $nAds
*
* @param string $html The html of the first classified page
*/
private function extract_nPag($html){
preg_match('/<strong>([0-9]+)</strong>/iU', $html, $result);
$result[1] = str_replace(".", "", $result[1]);
$this->nAds = $result[1];
}