300+ câu trắc nghiệm tổng hợp Lập trình Web có đáp án - Phần 11

Kết quả của đoạn code dưới đây là?php

23/30

Kết quả của đoạn code dưới đây là?

php


<?php

$num = 10;

echo 'What is her age? \n She is $num years old';

?>

What is her age? \n She is $num years old

What is her age? She is $num years old

What is her age? She is 10 years old

What is her age? She is 10 years old

Giải thích

Chọn đáp án A.