I am trying to write my below code using foreach
statement in PHP. I just started with PHP so still learning.
$myarray = array ("Hello World", "Hello Tree", "Hello, Proc!");
for($i = 0; $i < count($myarray); $i++) {
$myarray[$i] .= " ($i)";
}
How can I do this?