Could have been easier to debug by knowing the content of 'easybitcoin.php'. Anyways, try this...
require_once('easybitcoin.php');
$bitcoin = new Bitcoin('user','pass','localhost','port');
$getinfo = $bitcoin->getinfo();
print_r($getinfo[staking status]);