3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('id'=>array('1','2'),'post'=>array('tes','doang')); $placeholders = array(); foreach($array as $column => $value) { foreach ($value as $key => $value) { $pkey = ':' . $column . $key; $placeholders[$pkey] = $value; } } $pkeys = array_keys($placeholders); $value = $pkeys;
based on IBWvL
Output for 4.3.0 - 7.2.0