php - How to assign object's parameter based on it's other parameters upon defining? -
how assign object's parameter based on it's other parameters upon defining?
i want assing $universalquery_count
$mysql_count
& $sqlserver_count
with:
class productlist { protected $universalquery_count = " select count(*) table table.type= :type ", $mysql_count = $universalquery_count, $sqlserver_count = $universalquery_count; }
but get
parse error: syntax error, unexpected '$universalquery_count' (t_variable)
php oop
No comments:
Post a Comment