php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "time"

How can PHP be used to format time based on different time zones?

To format time based on different time zones in PHP, you can use the DateTime class along with DateTimeZone class. You can create a DateTime object wi...

How can PHP be used to retrieve server time rather than user time on a webpage?

To retrieve the server time rather than the user time on a webpage, you can use PHP to get the server's current time. This ensures that the time displ...

How can one calculate the total work time excluding commute time using DateTime in PHP?

To calculate the total work time excluding commute time using DateTime in PHP, you can create two DateTime objects representing the start and end time...

What are the advantages of using MySQL's TIME() function for comparing time values in database queries?

When comparing time values in MySQL queries, using the TIME() function can simplify the process by extracting the time portion of a datetime value. Th...

Is it recommended to store time values as TIME or DATETIME in a database when using PHP?

It is recommended to store time values as TIME in a database when using PHP if you only need to store time information without date components. Storin...

Showing 26 to 30 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.