Question:What is the best way to iterate through the $myarray array, assuming you want to modify the value of each element as you do?
<?php
$myarray = array ("My String",
"Another String",
"Hi, Mom!");
?>
 

A Using a for loop 

B Using a foreach loop 

C Using a while loop 

D Using a do…while loop 

E There is no way to accomplish this goal 

+ Answer
+ Explanation
+ Report
Total Preview: 621

Copyright © 2024. Powered by Intellect Software Ltd