php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "formatted strings"

How can text be formatted using bb codes in PHP?

To format text using bb codes in PHP, you can use regular expressions to match the bb codes and replace them with the corresponding HTML tags. This al...

What are common pitfalls when passing PHP strings to JavaScript functions?

Common pitfalls when passing PHP strings to JavaScript functions include not properly escaping special characters or not encoding the string to preven...

What are the potential pitfalls of using preg_match in PHP when dealing with JSON strings?

Using preg_match to parse JSON strings can be error-prone as JSON is a structured format that requires proper handling. It is recommended to use built...

How can PHP developers ensure that generated HTML is properly formatted and indented?

PHP developers can ensure that generated HTML is properly formatted and indented by using PHP's built-in DOMDocument class. This class allows develope...

What are the best practices for concatenating variables with strings in PHP to avoid complications like in the provided example?

When concatenating variables with strings in PHP, it is important to ensure that the variables are properly formatted to avoid unexpected results. One...

Showing 21 to 25 of 8591 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1718 1719 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.