php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "year extraction"

What are some best practices for splitting and manipulating dates in PHP for database queries?

When working with dates in PHP for database queries, it is often necessary to split and manipulate date values to format them correctly for querying....

In what scenarios is it more efficient to concatenate strings instead of using DateTime::createFromFormat in PHP?

Concatenating strings is more efficient than using DateTime::createFromFormat in PHP when you need to simply combine date components (year, month, day...

How can variables be formatted as text in PHP to behave as dates when using functions like date_format?

When working with variables that contain date information in PHP, you can format them as text using the date() function to behave as dates. This allow...

What are the best practices for formatting dates in PHP code for display purposes?

When displaying dates in PHP, it is important to format them correctly to ensure they are easily readable and consistent. One common way to format dat...

How can the DateTime class in PHP be utilized to format dates for output in a specific format?

To format dates for output in a specific format using the DateTime class in PHP, you can create a new DateTime object with the date you want to format...

Showing 1081 to 1085 of 1151 results

‹ 1 2 ... 214 215 216 217 218 219 220 ... 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.