(PHP 5 >= 5.0.4, PHP 7, PHP 8)
XSLTProcessor::hasExsltSupport — 判斷 PHP 是否支援 EXSLT
這個方法用於判斷 PHP 是否使用 » EXSLT 函式庫建置。
此函式沒有參數。
成功時回傳 true,失敗時回傳 false。
true
false
範例 #1 測試 EXSLT 支援
<?php$proc = new XSLTProcessor;if (!$proc->hasExsltSupport()) { die('EXSLT 支援無法使用');}// 在此處執行 EXSLT 的程式碼 ..?>