<form id="jl3nb"><nobr id="jl3nb"></nobr></form>

    <form id="jl3nb"><form id="jl3nb"></form></form>

    <form id="jl3nb"><nobr id="jl3nb"></nobr></form>

      <form id="jl3nb"></form>

      <form id="jl3nb"></form>

      <form id="jl3nb"></form>

      <form id="jl3nb"></form>

          中山php|最優網絡中山做網站 中山php建站

          最優良人

          2013/03/30 at 14:48

          php壓縮html : 清除換行符,清除制表符,去掉注釋標記

          /**
          * 壓縮html : 清除換行符,清除制表符,去掉注釋標記
          * @param $string
          * @return 壓縮后的$string
          * */
          function compress_html($string) {
          $string = str_replace("\r\n", '', $string); //清除換行符
          $string = str_replace("\n", '', $string); //清除換行符
          $string = str_replace("\t", '', $string); //清除制表符
          $pattern = array (
          "/> *([^ ]*) *</", //去掉注釋標記
          "/[\s]+/",
          "/<!--[^!]*-->/",
          "/\" /",
          "/ \"/",
          "'/\*[^*]*\*/'"
          );
          $replace = array (
          ">\\1<",
          " ",
          "",
          "\"",
          "\"",
          ""
          );
          return preg_replace($pattern, $replace, $string);
          }

          -
          色欲av免费一区二区三区|人妻丰满熟妇av欧无码区免费|免费看A片无码不卡福利视频6080|久久京东热AV男人的天堂|
          <form id="jl3nb"><nobr id="jl3nb"></nobr></form>

            <form id="jl3nb"><form id="jl3nb"></form></form>

            <form id="jl3nb"><nobr id="jl3nb"></nobr></form>

              <form id="jl3nb"></form>

              <form id="jl3nb"></form>

              <form id="jl3nb"></form>

              <form id="jl3nb"></form>