Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array_map passing parameters

function myarraymap($item,$item2) {
    return $item[$item2];
}

$param = 'some_value';

$ids = array_map(
    function($item) use ($param) { return myarraymap($item, $param); },
    $data['student_teacher']
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #passing #parameters
ADD COMMENT
Topic
Name
6+3 =