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"], ]; $a = match(null) { null => 1, null => 2, 22 => 2 }; printf(">>>>>>>>>>> $a"); print_r(array_filter(explode(".", ".2")));
Show:  
Copy Clear