yes, you can use the object variable inside a function:
function what() {
$this->variablename = "value"; }
or you can initiate when you create your class:
class myobject {
var $variablename = "value";
....
function object() {
....
now you can access $this->variablename anywhere in your class.