3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_array = array( "tracker"=> array( 0=> array( 0=> "[" , 1=> "asiangames" , 2=> "," , 3=> "asiangames2018" , 4=> "," , 5=> "asian" , 6=> "]" ), 1=> array( 0=> "[" , 1=> "2019gantipresiden" , 2=> "]" ) ) ) ; print_r($your_array); $remove_values = array('[',']',','); foreach($your_array['tracker'] as &$value){ foreach($value as $key=>$val){ if(in_array($val,$remove_values)){ unset($value[$key]); } } } print_r($your_array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [tracker] => Array ( [0] => Array ( [0] => [ [1] => asiangames [2] => , [3] => asiangames2018 [4] => , [5] => asian [6] => ] ) [1] => Array ( [0] => [ [1] => 2019gantipresiden [2] => ] ) ) ) Array ( [tracker] => Array ( [0] => Array ( [1] => asiangames [3] => asiangames2018 [5] => asian ) [1] => Array ( [1] => 2019gantipresiden ) ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
29.14 ms | 407 KiB | 5 Q