0
這是我curl_exec後得到響應:處理捲曲響應
1043475015id.failureFAILresultcode.confirm.ageCan無法確認Agefalsefalseid.not.eligible.for.questionsNot資格有關的問題
我要的是我希望將每個信息存儲在php中的單獨變量中,以便我可以執行一些檢查並將值存儲在數據庫中。
這是我curl_exec後得到響應:處理捲曲響應
1043475015id.failureFAILresultcode.confirm.ageCan無法確認Agefalsefalseid.not.eligible.for.questionsNot資格有關的問題
我要的是我希望將每個信息存儲在php中的單獨變量中,以便我可以執行一些檢查並將值存儲在數據庫中。
您可以使用正規表示法來獲取文本在不同的值,例如:
$d = "1043475015id.failureFAILresultcode.confirm.ageCan Not Confirm Agefalsefalseid.not.eligible.for.questionsNot Eligible For Questions";
$getText = preg_match('/(?<=confirm)\S+/i', $d, $matchText);
print_r($matchText);
您將獲得:
Array ([0] => .ageCan)
,你從每個希望我們這個,你可以創建許多變量文本。