PHP

How Smart Tools Are Shaping the Future of Creative Work

Eric Chuang
2020-01-05
<?php
/**
 * @param  array  $a
 * @param  array  $b
 * @return array
 */
function arrayDiff(array $a, array $b) {
  return array_values(array_diff($a,$b));
}

因為這個函式感覺蠻常用到的,所以先記下來。

使用場合:使用 shortcode 進行自訂查詢的時候,可以用來排除特定內容。

參考資料

Sign up for our newsletter

Subscribe to our newsletter to receive the latest updates, expert insights, and practical tips directly in your inbox. Stay informed with content designed to help you grow.

+480.000 happy customers

Gain more with expert solutions

Unlock the full potential of your business with our expert solutions. Our team provides tailored strategies, professional guidance, and actionable insights to help you achieve better results.

  • Eric Chuang
  • •
  • 2025-01-23
如何同時使用 Webinoly 與 Cloudflare 保護網站安全

在社群夥伴勇哥的文章〈Webinoly 最新版快速安裝〉中,提到使用 Webinoly 來建立 WordPre […]

主機