Skip to content
Rubin Shrestha
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
  • Search
Rubin Shrestha
  • Search
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
Home » Blog » Quick Tip: How to Trim Whitespace with PHP
Blog

Quick Tip: How to Trim Whitespace with PHP

by |Published February 22, 2023

How to Trim Whitespace with PHP

Learn some simple functions in PHP for trimming whitespace from strings, when you might need to use them, and a pitfall to watch out for.

Continue reading
Quick Tip: How to Trim Whitespace with PHP
on SitePoint.

You may also like

Maximize median of sequnce formed by choosing at least one from adjacent pairs
Published March 1, 2022

Maximize median of sequnce formed by choosing at least one from adjacent pairs

Given an array Arr[ ] of N integers where 1 ≤ N ≤ 105. The task is to choose any number of […]

Maximize the function by choosing Subsequence of size M
Published December 28, 2022

Maximize the function by choosing Subsequence of size M

Given an array A[] with size N, Select a subsequence B = {B[1], B[2], B[3], ………B[N] } of size M from given […]

Trying to install Macrium Reflect “Windows Boot Menu”. The installation failed
Published February 20, 2022

Trying to install Macrium Reflect “Windows Boot Menu”. The installation failed

The computer is a Dell Inspiron I3 7000. I had already installed Reflect and this happened when I tried to install Boot […]

eBay and Amazon Stock Integration for Magento Now Offered by FDO.co.uk
Published February 3, 2013

eBay and Amazon Stock Integration for Magento Now Offered by FDO.co.uk

There are immense customer bases on eBay and Amazon… being visible to these customers is the best advertising imaginable London, (PRWEB UK) […]

Interesting

  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
  • Is this the best way to rename multiple files in a Window folder using PowerShell?
  • When should I be using a fan controller over the ones on the motherboard?
  • Windows 11 taskbar search keeps loading forever and never shows results
  • OS drive image-level backup software with exclusion of files and folders [closed]
  • How can I set a hard cost limit for a single request in GitHub Copilot desktop app?
  • How do I get back db_ddladmin rights lost due to server replication?
  • Audio popping after idle on Dell Pro Max 16 MC16250 – where are the idle power settings in registry?

Post navigation

  • Previous post Default store is inactive
  • Back to post list
  • Next post 10 Best Prebuilt Websites for Digital Agencies & Consultants
——————-
  • How to open a specific commit (by hash) in VS Code’s multi-diff view?
  • Is this the best way to rename multiple files in a Window folder using PowerShell?
  • When should I be using a fan controller over the ones on the motherboard?
  • Windows 11 taskbar search keeps loading forever and never shows results
  • OS drive image-level backup software with exclusion of files and folders [closed]
——————-
  • Rubin Shrestha
  • Profile
  • Blog
  • Nepali Typing
  • Contact
——————-
  • Blog
  • Contact
  • Nepali Typing | Nepali Unicode | English to Nepali | English Conversion | English Translate | नेपाली to English | नेपाली टाईपिङ
  • Occasional Photography
    • The desert that everybody loves in pictures
  • Photography
  • Rubin Shrestha

© 2026 Rubin Shrestha – All rights reserved

Powered by WP – Designed with the Customizr theme