UK[dɪˈfɔ:lt] US[dɪˈfɔlt]

vi. Failure to perform tasks or responsibilities; failure to appear in court when summoned; failure to appear in court; abstention

vt. Failure To perform, to default; to fail to participate or complete (e.g., a competition); [Law] to lose (lawsuit) by not appearing in court

n. To fail to perform, to default; [Law] to fail to appear in court; to abstain; [Plan ] Default, default

Third person singular: defaults Present participle: defaulting Past tense: defaulted Past participle: defaulted

php date_default_timezone_set() function syntax

Function:Set the default time zone used by all date/time functions in the script.

Syntax: date_default_timezone_set(timezone);

Parameters:

ParameterDescription
timezone Required. Specifies the time zone to use, such as "UTC" or "Europe/Paris".

Description: List of legal time zones: www.php.net/manual/zh/timezones.php

php date_default_timezone_set() function example

<?php
date_default_timezone_set("Asia/Beijing");
echo date_default_timezone_get();
?>

Run instance»

Click the "Run instance" button to view the online instance

Output:

Asia/Shanghai