πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
class Constants
{
    define('MIN_VA', '10.10');  
    define('MAX_VAL', '20.20');  
    public static function getMin()
    {
        return self::MIN_VAL;
    }
    public static function getMax()
    {
        return self::MAX_VAL;
    }
}
echo Constants::getMin();
echo Constants::getMax();
?>
  • (A) Error
  • (B) 10.10
  • (C) 20.20
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (A) Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
230
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ravinder Singh
Publisher
πŸ“ˆ
97%
Success Rate