php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "substring function"

Are there any specific PHP functions or methods that can be used to find a common substring in two strings from position 0?

To find a common substring in two strings starting from position 0, we can use the `strspn` function in PHP. This function returns the length of the i...

What are some common methods in PHP to extract a substring from a string based on specific characters?

To extract a substring from a string based on specific characters in PHP, you can use functions like `substr()`, `strpos()`, and `substr_replace()`. `...

Are there any best practices or guidelines for determining the start and end positions for extracting a substring using PHP?

When extracting a substring using PHP, it is important to determine the start and end positions accurately to ensure that the desired portion of the s...

What are some built-in PHP functions for checking the presence of a substring in a string?

When working with strings in PHP, it is common to need to check if a particular substring exists within a larger string. PHP provides several built-in...

How can one efficiently replace only a specific substring within a larger string using preg_replace in PHP?

When using preg_replace in PHP to replace a specific substring within a larger string, you can efficiently achieve this by using regular expressions t...

Showing 66 to 70 of 10000 results

‹ 1 2 ... 11 12 13 14 15 16 17 ... 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.