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.
正規表現を使用して HTML を解析することはお勧めできません。物事を混乱させる可能性のある変数が多すぎます。
それにもかかわらず:
<?php $scrr = "<em>Details</em>I want to <em>get</em>"; preg_match_all('/<em>(.+?)<\/em>/is', $scrr, $match); print_r($match); ?>