Posted by m6s on 01/07/06 09:48
function getPrice( $sbl ){
if ( $sbl == $this->$paper[symbol] ){
return $this->$paper[price];
}
}
}
echo "Building a stock object....\n";
$sg = new Stocks();
$sg->setSymbol( "fdas" );
$sg->setPrice( "100" );
echo "Stock :".$sg->getPrice( "fdas" );
The getPrice returns nothing...
I don't understand why... The function resides in a class, as method of
an object.
Navigation:
[Reply to this message]
|