- strip_tags: documentation ( source)
- str_replace: documentation ( source)
- preg_replace: documentation ( source)
<?php
function string($string) {
$string = strip_tags($string);
$string = str_replace(' ','', $string);
$string = preg_replace('/\s+/','',$string);
$string = preg_repalce('~\x{00a0}~','',$string);
return empty($string);
}
echo string('Every thing is awesome');