Question and answer is powered by AnsPress.io
I wan to remove blank value from array php with array reindex in php.
I am try this code:
<?php $special_days=serialize($this->input->post('special_days')); print_r($special_days); exit(); ?>
Remove blank value from array in php.
Apply these code:
<?php $arr=$this->input->post('special_days'); $array_special_days=(array_values(array_filter($arr))); $special_days=serialize($array_special_days); print_r($special_days); exit(); ?>