Extract first paragraph tag from the string [duplicate]

I have array of string with Headlines or without Headlines

$str = [
 "Hotel Rest Inn is a traveler's delight. It has 18 rooms in the heart of Bangalore"
"<p>HeadLine : Near Race Course Road</p><p>Location : With a stay at Le Meridien Bangalore</p>
];

I want extract Headline from the string if it exists. In the above example Near Race Course Road I want to extract and remove p tag having headline from the array

What I found by google Is

$string = preg_replace('~<p>(.*?)</p>~is', '$1', $string, /* limit */ 1);

this removes a string.