Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- class Classe {
- public $valor;
- public function retornaValor() {
- return 'vsf';
- }
- public function mostraMsg() {
- @h@$this->valor = $this->retornaValor();
- }
- }
- $a = new Classe;
- $a->mostraMsg();
- echo $a->valor;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement