Tuesday, 15 January 2013

arrays - What does the following function do in PHP? -



arrays - What does the following function do in PHP? -

private static function quote($str) { homecoming '"' . $str . '"'; }

and mean too?

$args = array_map(array($this, 'quote'), $args);

i'm new php , trying figure out way through else's source code. thanks!

it adds quotes values in array.

php arrays

No comments:

Post a Comment