Tag

whitespace

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Mar 15, 2024 · Backend Development

Using PHP trim() Function to Remove Whitespace and Specific Characters

This article explains how the PHP trim() function removes leading and trailing whitespace from strings, demonstrates basic and advanced usage with code examples, and shows how to specify custom characters for more precise string cleaning.

BackendPHPTRIM
0 likes · 4 min read
Using PHP trim() Function to Remove Whitespace and Specific Characters
Laravel Tech Community
Laravel Tech Community
Aug 27, 2020 · Backend Development

PHP trim() Function: Removing Whitespace and Specified Characters

This article explains PHP's trim() function, detailing how it removes leading and trailing whitespace or custom characters, describes its parameters and return value, and provides multiple code examples demonstrating default usage, custom character lists, and applying trim via array_walk.

BackendPHPTRIM
0 likes · 3 min read
PHP trim() Function: Removing Whitespace and Specified Characters
360 Tech Engineering
360 Tech Engineering
Nov 15, 2018 · Frontend Development

Techniques to Remove Whitespace Between Inline HTML Elements

This article presents five practical methods for eliminating unwanted whitespace between inline HTML elements, including writing markup on a single line, using font-size:0, applying negative margins, setting negative letter-spacing, and inserting HTML comments, each illustrated with example code and visual screenshots.

HTMLcssfrontend
0 likes · 6 min read
Techniques to Remove Whitespace Between Inline HTML Elements