MCQs > IT & Programming > PHP > Assume that $r is 255, and $g and $b are both 0. What is the correct code to output "#ff0000"?

PHP MCQs

Assume that $r is 255, and $g and $b are both 0. What is the correct code to output "#ff0000"?

Answer

Correct Answer: Printf('#%02x%02x%02x', 255, 0, 0);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it