<?php $arr = array( 0 => 'show', 1=> 'create', 2=>'duplicate' ); $res = array_filter($arr, function($item) { return $item=='duplicate' ? 0 : 1; }); var_dump($res);
You have javascript disabled. You will not be able to edit any code.