1
如何將以下eregi轉換爲preg_match?PHP 7 - 將eregi轉換爲preg_match
if (eregi("VERIFIED",$this->ipn_response)) {
// Valid IPN transaction.
$this->log_ipn_results(true);
return true;
} else {
// Invalid IPN transaction. Check the log for details.
$this->last_error = 'IPN Validation Failed.';
$this->log_ipn_results(false);
return false;
}
你嘗試'如果(的preg_match( 「/通過/我」,$這個 - > ipn_response))' ? –