Source Code:
(back to article)
<?php $words = ['foo', 'bar', 'baz']; function upper($str) { return strtoupper($str); } $upper_words = array_map('upper', $words); print_r($upper_words); ?>
Result:
Report an issue