Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

removed spacel caracter using php

<?php
$mainstr = "<h2>Welcome to <b>PHPWorld</b></h2>";

echo "Text before remove: 
" . $mainstr;

echo "

Text after remove: 
" .
    str_ireplace(array('&lt;b&gt;', '&lt;/b&gt;', '&lt;h2&gt;', '&lt;/h2&gt;'), '',
    htmlspecialchars($mainstr));
?>
 output: 
  Text before remove: 
<h2>Welcome to <b>PHPWorld</b></h2>

Text after remove: 
Welcome to PHPWorld
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #removed #spacel #caracter #php
ADD COMMENT
Topic
Name
9+7 =