php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "remove"

What is the difference between using unset() and array_splice() to remove entries from an array in PHP?

When removing entries from an array in PHP, `unset()` is used to remove specific elements by their keys, while `array_splice()` is used to remove elem...

What PHP function can be used to remove specific characters from a string?

To remove specific characters from a string in PHP, you can use the `str_replace()` function. This function replaces all occurrences of a specified ch...

Are there any potential pitfalls when using str_replace() to remove spaces in PHP?

When using str_replace() to remove spaces in PHP, one potential pitfall is that it will only remove exact matches of the specified string. This means...

What is the best approach to remove all letters, replace periods with commas, and remove spaces in a string imported from a .csv file in PHP?

To achieve this, you can use a combination of PHP string functions like preg_replace, str_replace, and trim. First, remove all letters using a regular...

What function can be used to remove duplicates from a string in PHP?

To remove duplicates from a string in PHP, you can use the `array_unique` function to remove duplicate values from an array, and then use `implode` to...

Showing 11 to 15 of 3098 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 619 620 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.