<?php
/**
* @param array $a
* @param array $b
* @return array
*/
function arrayDiff(array $a, array $b) {
return array_values(array_diff($a,$b));
}
因為這個函式感覺蠻常用到的,所以先記下來。
使用場合:使用 shortcode 進行自訂查詢的時候,可以用來排除特定內容。
<?php
/**
* @param array $a
* @param array $b
* @return array
*/
function arrayDiff(array $a, array $b) {
return array_values(array_diff($a,$b));
}
因為這個函式感覺蠻常用到的,所以先記下來。
使用場合:使用 shortcode 進行自訂查詢的時候,可以用來排除特定內容。
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.
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.
在社群夥伴勇哥的文章〈Webinoly 最新版快速安裝〉中,提到使用 Webinoly 來建立 WordPre […]