PHP 8.5.0 Alpha 2 available for testing

Voting

: three plus five?
(Example: nine)

The Note You're Voting On

http://alex.moutonking.com/wordpress
14 years ago
For completeness one has to mention the possibility of using this function with PHP 5.3 closures:

<?php
$names
= array("D\'Artagnan", "Aramis", "Portos");
array_walk($names, function(&$n) {
$n = stripslashes($n);
});
?>

The trap with array_walk being it doesn't return the array, instead it's modified by reference.

<< Back to user notes page

To Top