Add `private $TEMP=array();` here to initialize it. Also use camel case for function and variable names as convention.