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

Do ‘echo’ and ‘print’ statements break my code?
Published November 18, 2019

Do ‘echo’ and ‘print’ statements break my code?

I’ve been doing my first University PHP project using Xampp, and everything has been running smoothly. I deployed my app on Google […]

Custom Order API Extension Attribute Not Saving
Published September 3, 2021

Custom Order API Extension Attribute Not Saving

I am trying to create a new extension attribute for the order API but I keep getting “does not have accessor method […]

Horribly unresponsive Ubuntu virtual machine in VirtualBox on Windows 11
Published January 5, 2024

Horribly unresponsive Ubuntu virtual machine in VirtualBox on Windows 11

I have installed an Ubuntu 22.04 LTS virtual machine into VirtualBox running on Windows 11 host. This is on an Intel Alder […]

How can i add new parameter to an API to register a new atribute
Published January 6, 2023

How can i add new parameter to an API to register a new atribute

How can i add new parameter to an API for example /V1/customers for register a new atribute phone for example.

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