php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "strstr"

What are some alternative methods to using preg_match() to match a specific number in a string in PHP?

When trying to match a specific number in a string in PHP, an alternative method to using preg_match() is to use functions like strpos() or strstr() t...

What are some common string manipulation functions in PHP that can be used to extract a portion of a string?

When working with strings in PHP, it is common to need to extract a portion of a string based on certain criteria such as a specific starting position...

What are some strategies for optimizing PHP code that involves checking for specific words or phrases?

When optimizing PHP code that involves checking for specific words or phrases, one strategy is to use the strpos() function instead of functions like...

What are some common pitfalls when trying to check if a variable contains specific characters in PHP?

One common pitfall when trying to check if a variable contains specific characters in PHP is not using the correct function or method to perform the c...

What are the best practices for checking if a string contains a specific character or substring in PHP?

When checking if a string contains a specific character or substring in PHP, you can use the strpos() function to search for the position of the subst...

Showing 86 to 90 of 92 results

‹ 1 2 ... 10 11 12 13 14 15 16 17 18 19 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.