<?php $list = [ 'foo' => 'bar', 'foobar' => 'bar', 'bar' => 'foo', ]; var_dump(array_filter($list, function ($key, $value) { return $value === 'bar'; }));
You have javascript disabled. You will not be able to edit any code.