php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "TRUNCATE"

What is the recommended method in PHP to truncate a string from the left up to a specific character, such as an underscore?

To truncate a string from the left up to a specific character, such as an underscore, in PHP, you can use the `strstr()` function to find the position...

Are there specific PHP functions or techniques that can be used to truncate long entries in a table column?

When dealing with long entries in a table column, one common solution is to truncate the text to a certain length to ensure it fits within the designa...

How can PHP be used to truncate text to a specific width and wrap it to a new line?

When dealing with long strings of text in PHP, it may be necessary to truncate the text to a specific width and wrap it to a new line to ensure proper...

What function did the user initially try to use to truncate the text and why did it not work as expected?

The user initially tried to use the `substr()` function to truncate the text, but it did not work as expected because it only cuts off the text at a s...

What is the function "substr()" used for in PHP and how can it be applied to truncate text output?

The function "substr()" in PHP is used to extract a portion of a string. To truncate text output, you can use this function to limit the number of cha...

Showing 16 to 20 of 258 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 51 52 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.