SarkariResultess QA Bank

PHP array में नया element अंत में कैसे जोड़ते हैं? की PHP best practice क्या है?

Other 0 Views Verified
PHP array में नया element अंत में कैसे जोड़ते हैं? की PHP best practice क्या है? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

$items.push_end('PHP');

$items.push_end('PHP');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

append $items 'PHP';

append $items 'PHP';
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

$items.add('PHP');

$items.add('PHP');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

$items[] = 'PHP';

$items[] = 'PHP';
Additional Explanation
[] assignment array के end में element जोड़ता है।