Код: Выделить всё
$str = [
"Hotel Rest Inn is a traveler's delight. It has 18 rooms in the heart of Bangalore"
"HeadLine : Near Race Course Road
Location : With a stay at Le Meridien Bangalore
];
Что я нашел в Google:
Код: Выделить всё
$string = preg_replace('~(.*?)
~is', '$1', $string, /* limit */ 1);
Подробнее здесь: https://stackoverflow.com/questions/787 ... the-string