Categories
PHP Development

Useful PHP Functions, Arrays, array_filter()

The below code probably shows example of the most useful usage of array_filter() function, where you can use both associative array key and value, and on top of that, also inject external parameter to callback function. $score = 150; $players = [ ‘john’ => 92, ‘adam’ => 150, ‘kate’ => 138, ‘robert’ => 150, ‘sylvia’ […]