[ create a new paste ] login | about

Link: http://codepad.org/9hyK0KSX    [ raw code | output | fork ]

PHP, pasted on Mar 8:
1
2
3
4
5
<?
$whatToStrip = array("?","!",",",";");
$test = "Hi! Am I here?";
echo $test."\n\n";
echo str_replace($whatToStrip, "", $test);


Output:
1
2
3
Hi! Am I here?

Hi Am I here


Create a new paste based on this one


Comments: