php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "string replace"

Are there alternative methods to replace text with array values in PHP besides preg_replace?

If you're looking for alternative methods to replace text with array values in PHP besides preg_replace, you can use str_replace or strtr functions. T...

Are there alternative methods to replace only the first character of a text with an image in PHP, besides using str_replace?

One alternative method to replace only the first character of a text with an image in PHP is by using substr_replace function. This function allows yo...

How can PHP developers efficiently check for the presence of a substring in a string of unknown length and replace it with another substring?

When checking for the presence of a substring in a string of unknown length and replacing it with another substring in PHP, developers can use the `st...

How can PHP developers replace whole words using preg_replace?

To replace whole words using preg_replace in PHP, developers can use word boundaries (\b) in the regular expression pattern to ensure that only comple...

How can preg_replace() or ere_replace() be used to replace variable names with <?php echo $name_der_variable ?> in PHP?

To replace variable names with <?php echo $name_der_variable ?> in PHP using preg_replace() or ere_replace(), you can use regular expressions to match...

Showing 141 to 145 of 10000 results

‹ 1 2 ... 26 27 28 29 30 31 32 ... 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.