Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Building
- {
- public $name;
- function __construct($name)
- {
- $this->$name = $name;
- }
- }
- $bd = new Building("Name");
- echo $bd->$name;
- Notice: Undefined variable: name in (...)
- Fatal error: Cannot access empty property in (...)
- Name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement