Write a PHP script to replace multiple characters from the following string.
Sample String : '\"\1+2/3*2:2-3/4*3'
<?php $my_str = '"\1+2/3*2:2-3/4*3'; echo str_replace(str_split('\\/:*?"<>|+-'), ' ', $my_str)."\n"; ?>
Sample Output:
1 2 3 2 2 3 4 3
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer