PHP - Classes and Objects
What will be the output of the following PHP code?
class Fruit {
const COLOR = 'Red';
}
echo Fruit::COLOR;class Fruit {
const COLOR = 'Red';
}
echo Fruit::COLOR;15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions