I have a PHP code
<?PHP
class options{
public function A(){
echo "Select A";
}
public function B(){
echo "Select B";
}
}
$opt = new options;
$opt->B()->A();
?>
I need output
============
Select A Select B
===========
But I got the output
============
Select B Select A
===========
Please Solve my issue.