乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      收藏PHP常用函數(shù)(3)

       萬卷書生 2009-05-24

      //將HTML表格的每行每列轉(zhuǎn)為數(shù)組,采集表格數(shù)據(jù)
      <?
      function get_td_array($table) {
              
      $table preg_replace("'<table[^>]*?>'si","",$table);

      //開源代碼OSPhP.COm.CN


              
      $table preg_replace("'<tr[^>]*?>'si","",$table);
              
      $table preg_replace("'<td[^>]*?>'si","",$table);
              
      $table str_replace("</tr>","{tr}",$table);
      //OSPHP.COM.Cn開源

              
      $table str_replace("</td>","{td}",$table);
              
      //去掉 HTML 標(biāo)記 
              
      $table preg_replace("'<[/!]*?[^<>]*?>'si","",$table); //OSPHP.COm.CN
              
      //去掉空白字符  
              
      $table preg_replace("'([rn])[s]+'","",$table);
              
      $table str_replace(" ","",$table); //開源代碼OSPHP.COM.Cn
              
      $table str_replace(" ","",$table);
              
              
      $table explode('{tr}'$table);
              
      array_pop($table); //開源代碼OSPHP.COM.Cn
              foreach (
      $table as $key=>$tr) {
                      
      $td explode('{td}'$tr);
                      
      array_pop($td);
                  
      $td_array[] = $td; //開源OSPhP.COM.CN
              }
              return 
      $td_array;
      }

      ?>


      //返回字符串中的所有單詞 $distinct=true 去除重復(fù)
      <?
      function split_en_str($str,$distinct=true) {
              
      preg_match_all('/([a-zA-Z]+)/',$str,$match);

      //開源代碼OSPhP.COm.CN


              if (
      $distinct == true) {
                      
      $match[1] = array_unique($match[1]);
              }
              
      sort($match[1]); //開源代碼OSPHP.COM.Cn
              return 
      $match[1];
      }
      ?>


      //打印出為本PHP項(xiàng)目做出貢獻(xiàn)的人員的清單
      <?
      string phpcredits
      (void)

      ?>

        本站是提供個(gè)人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多