Why do you put "var" before a class variable?

Asked

Viewed 35 times

3

<?php
    classe Caneta {
        var $modelo;
        var $cor; 
    }

What does the var before the variable?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.