php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "carriage returns"

Are there any best practices for handling arrays and function returns in PHP to avoid confusion or errors?

When working with arrays and function returns in PHP, it's important to clearly define the data structure being returned to avoid confusion or errors....

In PHP, how can you remove all whitespace characters except spaces from a string using regular expressions?

When using regular expressions in PHP, you can use the `preg_replace` function to remove all whitespace characters except spaces from a string. You ca...

What does it mean when mysql_affected_rows() returns -1 in PHP?

When mysql_affected_rows() returns -1 in PHP, it means that the query failed or there was an error in executing the query. This could be due to variou...

How can one ensure that the PDO query returns the expected results in PHP?

To ensure that a PDO query returns the expected results in PHP, one must properly bind parameters, execute the query, and fetch the results using the...

What alternative methods can be used to achieve the same result as using \s in regular expressions in PHP?

When using regular expressions in PHP, the "\s" pattern is typically used to match any whitespace character. However, if you want to achieve the same...

Showing 26 to 30 of 3538 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 707 708 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.