HTML ÆäÀÌÁö¿¡¼ ÁÖ¼®À» Á¦°ÅÇÏ´Â Á¤±Ô½Ä(PHP) |
|
|
![](icon/private_name/1.gif) |
8³â Àü |
/* */ÁÖ¼®
$str = preg_replace('/\/\*(.*?)\*\//is', '', $str);
<!-- -->ÁÖ¼®
$str = preg_replace('/<!--(.*?)-->/is', '', $str);
//ÁÖ¼®
$str = preg_replace('/\/\/(.*)\n', '', $str);
#ÁÖ¼®
$str = preg_replace('/#(.*)\n/', '', $str);
'ÁÖ¼®
$str = preg_replace('/\'(.*)\n/', '', $str);
|
|
̵̧ : 307 |
̵̧
¸ñ·Ï
|
|