3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) );*/ //column $a = "asd,sadsa,sdaad"; echo query_columns ($a,'adss', "ard = '1' and try = '12'"); //where function query_columns ($columns, $tables, $where) { //column //$columns = explode(',',$columns); //$columns = implode(',',$columns); $query = "SELECT $columns FROM $tables WHERE $where"; return $query; } ?>
based on FfMOV
Output for 4.3.0 - 7.1.0
SELECT asd,sadsa,sdaad FROM adss WHERE ard = '1' and try = '12'