3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_REQUEST['token_pre_pop'] = true; $_REQUEST['ids'] = '1000,1002,1004'; //$_REQUEST['ids'] = '1000'; $_REQUEST['ids'] = ''; if (isset($_REQUEST['token_pre_pop'])) { $ids = $_REQUEST['ids']; $ids = explode(",", urldecode($ids)); $ids = "'".implode("','", $ids)."'"; echo $ids; // JSONed }
based on 2iCfE
Output for 4.3.0 - 7.2.0
''