php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "string formatting"

How can one properly format a string in PHP for later use with printf()?

When formatting a string in PHP for later use with printf(), you need to use placeholders such as %s for strings, %d for integers, and %f for floating...

How can non-string values be properly cast to strings when exporting data to CSV in PHP?

When exporting data to CSV in PHP, non-string values need to be properly cast to strings to avoid any formatting issues. One way to do this is by usin...

In what situations is it appropriate to use regular expressions for string manipulation in PHP?

Regular expressions are appropriate for string manipulation in PHP when you need to search for or replace specific patterns within a string. This can...

What is the recommended alternative function to use for BBCode formatting in PHP?

The recommended alternative function to use for BBCode formatting in PHP is the `strip_tags()` function. This function allows you to remove any HTML a...

How can PHP beginners effectively implement the removal of HTML tags from a string?

When dealing with user input or dynamic content, it's important to remove HTML tags from a string to prevent any potential security vulnerabilities or...

Showing 96 to 100 of 10000 results

‹ 1 2 ... 17 18 19 20 21 22 23 ... 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.