Avenir | Drupal Development | Joomla Development | Magento Development | OsCommerce Development

Wednesday, 22 February 2012

How to remove the PHP tag using preg_replace


$str= 'hi radha x,annnnnnn.......<? "pri";?> <?="pri";?> hi jo <?php ehco 'TEXT';?> Hi raja' ;

$removedPhpWrap10=preg_replace(array('#<\?(?:php)?(.*?)\?>#s'), array(''), $str);

4 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. this coding is very useful for removing Php tags,
    Web Development Bahrain

    ReplyDelete
  3. Hi my loved one! I wish to say that this post is awesome, nice written and include approximately all significant infos. I’d like to look extra posts like this.

    -

    web developers sydney | web design in sydney | web development agency sydney

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete