Level 73
This is the easiest way.
$dates = explode(' - ' ,$x);
It will give you
=> [
"14/03/2020",
"12/04/2020",
]
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
// 14/03/2020 - 12/04/2020 //
$z = $request->input('dateRange');
dd($x);
This is the easiest way.
$dates = explode(' - ' ,$x);
It will give you
=> [
"14/03/2020",
"12/04/2020",
]
Please or to participate in this conversation.