i'm new to php, don't really understand what is this mean:
$data->_ole->read()
as i know, $data->read() is calling method from a class.
Please help.
What is mean by this $data->_ole->read
Moderator: General Moderators
$data will be an object instance of a class
In your script somewhere, you will find a line similar to:
Where className will actually be the name of the class, and there may be some arguments passed aswell.
_ole will be a property of $data, or to be more precise, an object property, so somewhere within the class className, there will be a line such as:
and read will be a member function (method) of the otherClassName object _ole
And without seeing the code, I couldn't possibly tell you what it is doing, other than "reading" something 
In your script somewhere, you will find a line similar to:
Code: Select all
<?php
$data = new className();
?>_ole will be a property of $data, or to be more precise, an object property, so somewhere within the class className, there will be a line such as:
Code: Select all
<?php
class className()
{
var $_ole;
function className()
{
$this->_ole = new otherClassName();
}
}Code: Select all
<?php
class otherClassName
{
function read ()
{
//do stuff
}
}
?>