php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "specific word"

How can PHP be used to efficiently sort an array based on both numerical values and specific word occurrences in a field?

To efficiently sort an array based on both numerical values and specific word occurrences in a field, you can use the `usort` function in PHP. This fu...

How can PHP be used to search for a specific word in a text and highlight it?

To search for a specific word in a text and highlight it using PHP, you can use the `str_replace` function to replace the word with an HTML tag that a...

What are the best practices for checking if a specific word is present in a sentence using PHP functions like strpos?

To check if a specific word is present in a sentence using PHP functions like strpos, you can use the strpos function to find the position of the word...

How can a specific word be replaced with a link in PHP, similar to other forums?

To replace a specific word with a link in PHP, you can use the `str_replace()` function to search for the word and replace it with an anchor tag conta...

How can regex be used to search for a specific word that is not within an HTML tag?

To search for a specific word that is not within an HTML tag using regex, we can use a negative lookahead assertion to exclude matches that occur with...

Showing 26 to 30 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.