3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data_billding= array( 'first_name' => "<b>hello</b>", 'last_name' => "<i>hello</i>", 'email' => "\hello", 'phone' => "he\llo", 'address' => "<h1>hello</h1>", ); function change($value, $key){ $key = stripslashes(strip_tags($key)); $value = stripslashes(strip_tags($value)); global $a; $a[] = array($key => $value); //print_r($a); } array_walk_recursive($data_billding, "change"); print_r($a); function my_function($value){ return stripslashes(strip_tags($value)); } /*trả về array chứa value nếu hàm my_function trả về TRUe*/ print_r(array_filter($data_billding,"my_function")); ?>
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [0] => Array ( [first_name] => hello ) [1] => Array ( [last_name] => hello ) [2] => Array ( [email] => hello ) [3] => Array ( [phone] => hello ) [4] => Array ( [address] => hello ) ) Array ( [first_name] => <b>hello</b> [last_name] => <i>hello</i> [email] => \hello [phone] => he\llo [address] => <h1>hello</h1> )

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:
52.95 ms | 402 KiB | 8 Q