Question
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: Option B
Was this answer helpful ?
Yes they are nothing but variables.
Was this answer helpful ?
Submit Solution