php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "portion"

Are there any alternative methods to extract the desired URL portion in PHP?

When extracting a specific portion of a URL in PHP, one common method is to use the `parse_url()` function to break down the URL into its components a...

What is the best way to output only a portion of a variable in PHP?

To output only a portion of a variable in PHP, you can use the substr() function. This function allows you to extract a specific portion of a string v...

How can PHP be used to extract a portion of HTML from a webpage?

To extract a portion of HTML from a webpage using PHP, you can use the file_get_contents() function to retrieve the webpage's content, and then use fu...

What is the best approach to delete a portion of a string in PHP while retaining the rest of the string?

To delete a portion of a string in PHP while retaining the rest of the string, you can use the `substr_replace` function. This function allows you to...

What is the function in PHP to delete a portion of a string from a specific position to the end?

To delete a portion of a string from a specific position to the end in PHP, you can use the `substr_replace()` function. This function replaces a port...

Showing 1 to 5 of 418 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 83 84 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.