Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove colon and white space in a string by php

$demo_string =  "The Godfather: Part II";

$demo_string = str_replace(':', '', $demo_string);

$demo_string = str_replace(' ', '', $demo_string);
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #remove #colon #white #space #string #php
ADD COMMENT
Topic
Name
3+6 =