remove colon and white space in a string by php

37

$demo_string =  "The Godfather: Part II";

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

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

Comments

Submit
0 Comments