Skip to content

Instantly share code, notes, and snippets.

@sharazghouri
Created December 18, 2017 06:27
Show Gist options
  • Save sharazghouri/2c23394a96e08cc85562e894f774be96 to your computer and use it in GitHub Desktop.
Save sharazghouri/2c23394a96e08cc85562e894f774be96 to your computer and use it in GitHub Desktop.
removing P tag form text
<?php
$str= '<p>hello hello hello heloo </p>';
echo sstr_replace( array( '<p>', '</p>'),'',$str);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment