1. how do I remove ssi, htm from a string variable 2. 1. how do I remove a character from a string variable f.e $n="55^^77^7" remove all ^ from $n
In your limited example, use str_replace: $n = str_replace("^", "", $n); You can strip out HTML tags with strip_tags. For example: <?php $n= '<p align="left"><font color="#33CC33">Get it</font></p>'; $n = strip_tags( $n); echo $n, "\n"; ?> Code (markup):