programming-examples/php/String/PHP script to replace multiple characters from the following string..php

4 lines
107 B
PHP
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<?php
$my_str = '\"\1+2/3*2:2-3/4*3';
echo str_replace(str_split('\\/:*?"<>|+-'), ' ', $my_str)."\n";
?>