PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $arr = ['str1', 'str2', 'str3']; // Вариант 1 foreach ($arr as $key => $value) { $arr[$key] .= ' modified'; } // Вариант 2 array_walk($arr, fn (&$value) => $value .= ' modified');
Show:  
Copy Clear