Created
June 18, 2014 14:19
-
-
Save danielnv18/103a7e3d6624f33d4020 to your computer and use it in GitHub Desktop.
This also wipes newline . This will come handy if you are trying to printing javascript code within php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
preg_replace('/\p{C}+/u', '', $topic_obj->description) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment