php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "substr"

What are some alternative methods to achieve the same result as using substr() function in PHP to extract data from text strings?

The substr() function in PHP is commonly used to extract a portion of a string based on a specified starting position and length. If you need to achie...

What is the significance of the error message "Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated" in PHP?

The error message "Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated" indicates that the substr() function in...

How can substr() function be used to manipulate date formats in PHP?

To manipulate date formats in PHP using the substr() function, you can extract specific parts of the date string and rearrange them to create the desi...

What is the purpose of using substr() function in PHP and how can it be applied in this scenario?

The substr() function in PHP is used to extract a portion of a string. In this scenario, if we want to extract a specific number of characters from th...

What potential issues can arise when using substr() with multibyte characters in PHP?

When using substr() with multibyte characters in PHP, potential issues can arise due to the fact that substr() operates on bytes, not characters. This...

Showing 36 to 40 of 992 results

‹ 1 2 ... 5 6 7 8 9 10 11 ... 198 199 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • Privacy
  • FAQ

© 2025 php.org. All rights reserved.