php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "d"

What are the differences between [0-9] and \d in regular expressions in PHP, and when should each be used?

In regular expressions in PHP, [0-9] matches any single digit from 0 to 9, while \d matches any digit character. The difference is that [0-9] specific...

How can the date format Y-m-d (e.g. 1987-02-20) be enforced using regex in PHP and what are the common issues that may arise?

To enforce the date format Y-m-d (e.g. 1987-02-20) using regex in PHP, you can use the following regular expression pattern: "/^\d{4}-\d{2}-\d{2}$/"....

What are the advantages and disadvantages of using APC or Memcache(d) for caching arrays in PHP?

When caching arrays in PHP, using APC or Memcache(d) can significantly improve performance by storing the arrays in memory and reducing the need to fe...

What are the potential errors that can occur when using the syntax $a == $b == $c == $d in PHP?

When using the syntax $a == $b == $c == $d in PHP, the potential error is that it does not work as expected. This is because the comparison operators...

What is the purpose of using the PHP code "strftime("%m/%d %R", strtotime($zeile['date_von']))" for date formatting?

The purpose of using the PHP code "strftime("%m/%d %R", strtotime($zeile['date_von']))" is to format a date string retrieved from a database in a spec...

Showing 11 to 15 of 370 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 73 74 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.