Voting

: five plus four?
(Example: nine)

The Note You're Voting On

stijnleenknegt at gmail dot com
16 years ago
If you want to pass an argument like ENT_QUOTES to htmlentities, you can do the follow.

<?php
$array
= array_map( 'htmlentities' , $array, array_fill(0 , count($array) , ENT_QUOTES) );
?>

The third argument creates an equal sized array of $array filled with the parameter you want to give with your callback function.

<< Back to user notes page

To Top