php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "input string"

What are some best practices for handling variables and concatenating strings in PHP code?

When handling variables and concatenating strings in PHP code, it is important to properly sanitize user input to prevent security vulnerabilities suc...

What is the difference between truncation and masking in PHP variable handling?

Truncation in PHP variable handling involves cutting off a portion of a string or number, usually to a specified length. This can be useful when you w...

What is the function nl2br() used for in PHP and how can it be implemented for text formatting?

The nl2br() function in PHP is used to convert newlines (\n) in a string to HTML line breaks (<br>). This is useful for displaying text from a databas...

How can str_replace() be used in conjunction with regular expressions in PHP functions?

When using str_replace() in conjunction with regular expressions in PHP functions, you can search for patterns within a string and replace them with s...

What is the equivalent function in PHP to Perl's s/// regex substitution?

In PHP, the equivalent function to Perl's s/// regex substitution is the preg_replace() function. This function allows you to perform regular expressi...

Showing 9996 to 10000 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.