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.
我有一个变量 $var = 'src="some-http-source" ' 我想在 php 中使用模式匹配将反转中的值作为变量获取请帮助
$var = 'src="some-http-source"'; $matched = array(); preg_match('@src="(.+)"@', $var, $matches); echo $matches[1]; // there it is!