[eluser]Fenix[/eluser]
I am in the process of converting an old project to use PHP objects.
So far this is what my basic class structure looks like:
Code:
class BookSearch
{
function BookSearch($isbn_search)
{
$attribute = 'example';
}
}
I want to be able to do the following:
Code:
$mybook = new BookSearch(9780596529963);
echo $mybook->attribute; // outputs 'example'
I tried loading the class as a library but that isn't how it should have to work. Can I just include it somehow and create objects like above?