Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
CREATE TABLE _table (
d timestamp
);
INSERT INTO _table
VALUES
(
'2020-12-12 12:12:12.121212'
);
SELECT
d
FROM
_table;
<?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(">>>>>>>>>>> " . filter_var(true, FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE));