如何使预匹配同时匹配'location: '和'Location: '
preg_match('#Location: (.*)#', $curl, $result)发布于 2017-01-13 23:42:13
只需使正则表达式不区分大小写:
preg_match('#Location: (.*)#i', $curl, $result)
// here __^https://stackoverflow.com/questions/41638157
复制相似问题