Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = new User();
- $user->name = "Saheel";
- $user->password = "bigSecret";
- $user->print_something();
- class User
- {
- public $name;
- public $password;
- public function print_something()
- {
- echo "Here is it, something.<br />";
- echo $name." has ".$password." as his password.";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement