My Linux Guide
  • Home
Subscribe
Tagged

remove whitespace php

A collection of 1 post

PHP

PHP function to remove whitespaces from a string

Usage : $spaceRemovedString = removeWhiteSpaces($stringWithSpace);   Function : function removeWhiteSpaces($spaceStr) { $newStr = preg_replace('/\s+/', '', $spaceStr); return $newStr; }

  • Nishant
Nishant Dec 28, 2012 • 1 min read
My Linux Guide © 2021
Powered by Ghost