php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "local time"

How can the date function be utilized to generate random values in PHP?

To generate random values using the date function in PHP, you can use the 'U' format character to get the current Unix timestamp and then use it as a...

How can the substr() function be used to split a string into 2-character pairs in PHP?

To split a string into 2-character pairs in PHP, you can use the substr() function inside a loop to iterate through the string and extract 2-character...

What is the correct way to clear cookies in PHP to prevent users from accessing a page using the back button or copied URLs?

When users access a page using the back button or copied URLs, their cookies may still be stored, allowing them to bypass any authentication or sessio...

Are there any best practices for managing cookies in PHP to ensure security and prevent unauthorized access to pages?

To manage cookies securely in PHP and prevent unauthorized access to pages, it is essential to set appropriate cookie parameters such as expiration ti...

How can PHP scripts be optimized to efficiently handle file size checks without causing server overload or timeouts?

When handling file size checks in PHP scripts, it is important to optimize the process to prevent server overload or timeouts. One way to do this is b...

Showing 9976 to 9980 of 10000 results

‹ 1 2 ... 1991 1992 1993 1994 1995 1996 1997 1998 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.