T
Q. What is the result of the following PHP code?
<?php class Person { public $name = "Person"; public function __construct($name) { $this->name = $name; } } $p = new Person("John"); echo $p->name; ?>
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What will be the output of the following PHP code ?
Q. What will be the output of the following PHP code?
Q. What is the result of the following PHP code?
Q. What will be the output of the following PHP code ?
Q. Which of the following is the correct way of defining a variable in PHP?
Q. What will be the output of the following PHP code?
Discusssion
Login to discuss.