?
In the PHP code given below, what is/are the properties?
In the PHP code given below, what is/are the properties?
<?php
class Example
{
public $name;
function Sample()
{
echo "This is an example";
}
}
?>
<?php
class Example
{
public $name;
function Sample()
{
echo "This is an example";
}
}
?>
Answer & Solution
Correct Answer:
Option
B
Yes they are nothing but variables.
Join the Discussion
Login to post a comment or share your explanation.
Login