1
私のアプリケーションには次のコードがあります。 誰でも教えてくださいuse
キーワードは、array_map()
の機能は何ですか?array_map()関数のPHP useキーワードの目的は?
array_map(function($record) use ($edit_form, $otherfields, $otherfields_keys)
{
User::parseData($record, $edit_form['metadata']);
if (isset($otherfields[$record['user_id']])) {
return $record + $otherfields[$record['user_id']];
}
return $record + $otherfields_keys;
}, $records);
ありがとうございます。
[PHP 5.3.0では、関数 "use"という識別子は何ですか?](https://stackoverflow.com/questions/1065188/in-php-5-3-0-what-is-機能使用識別子) – omerowitz