I want to do var_export () and cross out all the numeric keys of the array in the array. My array is output like this:
array ( 2 => array ( 1 => array ( 'infor' => 'Radiation therapy & chemo subhead', 'PPOWithNotif' => '', 'PPOWithOutNotif' => 'Radiation therapy & chemo PPO amount', 'NonPPO' => 'Radiation therapy & chemo Non PPO amount', ), ), 3 => array ( 1 => array ( 'infor' => 'Allergy testing & treatment subhead', 'PPOWithNotif' => '', 'PPOWithOutNotif' => 'Allergy testing & treatment PPO amount', 'NonPPO' => 'Allergy testing & treatment Non PPO amount', ), ) )
By doing this, I can shuffle the array values ββthat you need without worrying about the numerical values ββof the array.
I tried using echo preg_replace("/[0-9]+ \=\>/i", '', var_export($data)); but he does nothing. Any suggestions? Is there something I am not doing with my regex? Is there a better solution for all this?
Webnet
source share