色欲av免费一区二区三区|人妻丰满熟妇av欧无码区免费|免费看A片无码不卡福利视频6080|久久京东热AV男人的天堂|

            <sub id="j9vn7"><nobr id="j9vn7"></nobr></sub>

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

                      <address id="j9vn7"></address>

                          <address id="j9vn7"></address>

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

                            <form id="j9vn7"></form>

                              <form id="j9vn7"></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);
                              }

                              -

                                        <sub id="j9vn7"><nobr id="j9vn7"></nobr></sub>

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

                                                  <address id="j9vn7"></address>

                                                      <address id="j9vn7"></address>

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

                                                        <form id="j9vn7"></form>

                                                          <form id="j9vn7"></form>