Remove White Space From String

Remove White Space From String Script is used to remove all or some white space from a string, or compress multiple spaces in a string.


Demo :



Type Text  

Example :

Type Text : "  What is String ?"

If you need to remove white space from string following code useful to you.


<?php
  $string = "    What is String ?";
  $result = trim($string);
  echo $result;
?>

In the above code is used to remove white space from string. The '"   What is String ?"' this string stored in $string variable.Then trim() function is remove white space and return string to broswer.In the trim() function two parameter have used that name is string str,[string character_mask].

Free Download Script :

If you need Removing White space String Script click and download from following link.

Download




Content