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!