Example,
php
$array = ['Bob' => 'Dylan', 'Michael' => 'Jackson', 'Mick' => 'Jagger', 'Janet' => 'Jackson'];
$removed = \yii\helpers\ArrayHelper::removeValue($array, 'Jackson');
result:
$array = ['Bob' => 'Dylan', 'Mick' => 'Jagger'];
$removed = ['Michael' => 'Jackson', 'Janet' => 'Jackson'];