Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
use Carbon\Carbon;
$data = [
"random value1<tr>random string1</tr>random endvalue1",
"random value2<tr>random string2</tr>random endvalue2",
];
var_export(
preg_replace(
'#.*<tr>(.*?)</tr>.*#',
'$1',
collect($data)->toArray()
)
);