SarkariResultess QA Bank

Answer & Explanation

4 Answers
Verified

array colors = ['red'];

array colors = ['red'];
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

$colors = <red,green>;

$colors = ;
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

$colors = ['red', 'green', 'blue'];

$colors = ['red', 'green', 'blue'];
Additional Explanation
Square brackets indexed array बनाते हैं। पहले exact error message, line number और input value check करें।
Verified

$colors = ('red','green');

$colors = ('red','green');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।