PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE _table ( d timestamp ); INSERT INTO _table VALUES ( '2020-12-12 12:12:12.121212' ); SELECT d FROM _table;
Copy Clear
Copy Format Clear
<?php $query = "SELECT d FROM _table;"; $stmt = $pdo->prepare($query); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); printf('Microsecond time is: %s', $row['d']); printf('>>>>>>>>>>>>>'); printf($db->table("_table")->first()->d); printf('>>>>>>>>>>>>>'); printf(is_string($db->table("_table")->first()->d)); $array = [ ["nome" => "1"], ["nome" => "2"], ["nome" => "3"], ]; print_r(array_column($array), "nome");
Show:  
Copy Clear