Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP 函数 imap_sort 和 imap_search 有 encoding 参数,默认为 null,但如果在代码中设置为 null 则错误占据:
未捕获的 TypeError:imap_sort() 期望参数 6 为字符串,null
代码:\imap_sort($resource, $sortCriteria, $descending ? 1 : 0, \SE_UID, $query, null);
\imap_sort($resource, $sortCriteria, $descending ? 1 : 0, \SE_UID, $query, null);
如何准确设置编码的默认值(所以,我不能只删除这个参数)?