Skip to content

Instantly share code, notes, and snippets.

@haxianhe
Created July 12, 2019 06:26
Show Gist options
  • Save haxianhe/3e547845479748d5fc2258d929b3d5c0 to your computer and use it in GitHub Desktop.
Save haxianhe/3e547845479748d5fc2258d929b3d5c0 to your computer and use it in GitHub Desktop.
php 过滤数组元素
<?php
$abnormalOrderIds = array_filter($abnormalOrderIds, function ($item) use ($completeOrders) {
return !isset($completeOrders[$item['code']]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment