php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "year extraction"

How can a UNIX timestamp be converted to display the date and time in a specific format in PHP?

To convert a UNIX timestamp to display the date and time in a specific format in PHP, you can use the `date()` function. This function allows you to f...

How can timestamps be used to calculate age in PHP?

To calculate age using timestamps in PHP, you can subtract the timestamp of the birthdate from the current timestamp, and then convert the result into...

How can mktime be used to generate specific dates in PHP, and what are its advantages over strtotime?

To generate specific dates in PHP using mktime, you can specify the individual components of the date (year, month, day, hour, minute, second) as argu...

Are there any potential pitfalls in using the date("t") function in PHP for calculating the number of days in a month?

The potential pitfall in using the date("t") function in PHP for calculating the number of days in a month is that it relies on the current date, so i...

How can the date() function be used to format dates in PHP?

The date() function in PHP can be used to format dates by specifying a format string that defines how the date should be displayed. This function take...

Showing 1101 to 1105 of 1151 results

‹ 1 2 ... 218 219 220 221 222 223 224 ... 230 231 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.