Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // сделать класс на php
- class User{
- private $userName;
- private $age;
- function __constuctor($userName, $age){
- $this->userName = $userName;
- $this->age = $age;
- }
- function whois(){
- return 'Name: ' . $this->userName . '\nAge: ' . $this->age;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement