Adding The $Age Variable To Cat

<?php
class Cat {
  var $age;
  //PHP 5 uses:
  //public $age;
}
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.