Level 1
store it in a var , then add ->toArray() in the end $var->toArray();
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I need to convert this
Illuminate\Support\Collection Object ( [items:protected] => Array ( [0] => Devic_ID_1 [1] => Devic_ID_2 ) [escapeWhenCastingToString:protected] => )
to this format
$registration_ids = array('Devic_ID_1', 'Device_ID_2');
Please or to participate in this conversation.