📜  php array_filter - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:40.499000             🧑  作者: Mango

代码示例6
$var = [
  'first' => 'one',
  'second' => null,
  'third' => 'three',
];


$filteredArray = array_filter($var);
// output: ['first'=>'one,'third'=>'three']