property not updating in object when page is posted
- by Jared
Hi
I have set a property in a constructor like so
function __construct()
{
$this->count = count(@$_SESSION['filearray']); //count how many files in array
}
and using it in condition statements if($this->count > 10) //then do something
but it appears the count isn't being updated when I use another method of injecting values into this…