php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "specific words"

How can external files be used to filter out specific words from a string in PHP?

To filter out specific words from a string in PHP using external files, you can create a text file containing the words you want to filter out. Then,...

How can PHP functions like preg_replace and str_replace be utilized to highlight specific words in a text?

To highlight specific words in a text using PHP functions like preg_replace and str_replace, you can search for the target words and wrap them in HTML...

What is the best approach in PHP to extract whole words containing a specific substring from a string?

When extracting whole words containing a specific substring from a string in PHP, a common approach is to use regular expressions. By using the preg_m...

How can the str_replace() function be optimized for replacing specific words with links in PHP?

The str_replace() function can be optimized for replacing specific words with links in PHP by using an associative array where keys are the words to b...

What is the recommended approach for removing specific words from a string in PHP?

When removing specific words from a string in PHP, the recommended approach is to use the `str_replace()` function. This function allows you to specif...

Showing 31 to 35 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 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.