<?php $arr=array(1,2,3,4,5); $db = new PDO("sqlite::memory:"); $db->exec("CREATE TABLE t(n REAL);"); $db->exec("INSERT INTO t VALUES (". implode("),(", $arr).")"); var_dump($db->query("SELECT n FROM t ORDER BY n DESC LIMIT 1,1")->fetch()[0]);
You have javascript disabled. You will not be able to edit any code.