Source Code:
(back to article)
<?php function processArray(array $arr) { foreach ($arr as $element) { echo $element . "!"; } } // Example usage: $array = ["apple", "banana", "orange"]; processArray($array); // outputs "apple!banana!orange!"
Result:
Report an issue