- var_export: documentation ( source)
- array_filter: documentation ( source)
<?php
$array = [
'ticket_number' => 'sdfsdfsdf 2',
'strategy_id' => '5',
'journal_entries_strategy_conditions' => [
0 => [
'strategies_condition_id' => ''
],
1 => [
'strategies_condition_id' => '1'
]
],
'timeframe' => '',
];
$array['journal_entries_strategy_conditions'] = array_filter(
$array['journal_entries_strategy_conditions'],
fn($v) => $v['strategies_condition_id']
);
var_export($array);