<?php $sals=[ 'sachin' => 20000, 'dhoni' => 10000, ]; foreach($sals as$value){ print $value; } ?> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

<?php $sals=[ 'sachin' => 20000, 'dhoni' => 10000, ]; foreach($sals as$value){ print $value; } ?>

could anyone please tell me the expected output for the above PHP code

19th Sep 2017, 4:32 PM
Srikanth iyer
Srikanth iyer - avatar
3 Answers
+ 7
Please put you code inside the playground. And place your question in the title, and not a code. It makes the Q and A a mess. - Thanks
19th Sep 2017, 4:42 PM
Manual
Manual - avatar
+ 5
Create a new code / get an existing code. For PC paste the url in the description. For Phone press insert press code choose your code l l \/
19th Sep 2017, 4:46 PM
Manual
Manual - avatar
19th Sep 2017, 4:47 PM
Manual
Manual - avatar