久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php隨機產(chǎn)生不同顏色驗證碼

      php隨機產(chǎn)生不同顏色驗證碼

      php可以使用rand()函數(shù)產(chǎn)生隨機數(shù),然后在rgb方法中使用產(chǎn)生的隨機數(shù)來設(shè)置顏色即可實現(xiàn)產(chǎn)生不同顏色驗證碼。

      <?php  //ord($ascii):得到執(zhí)行字符的ASCII碼值  echo ord('a'),'<br/>'; //通過ASCII碼值 得到字符串 echo chr(98),'<br/>'; // php 7.0專有 冪運算 echo 2 ** 3,'<br/>'; //字符連接符. echo 'a'.'b'.'c'."<br/>"; $str=''; $str.="a"; $str.="n"; echo "$str".'<br/>'; //產(chǎn)生隨機數(shù) #mt_rand($min.$max); 產(chǎn)生隨機數(shù) echo (mt_rand(1000,9999)); echo "<br/>"; $code=""; $code.='<span style="color:rgb('.mt_rand(0,255).','.mt_rand(0,255).','.mt_rand(0,255).')">'.mt_rand(1,9).'</span>'; $code.='<span style="color:rgb('.mt_rand(0,255).','.mt_rand(0,255).','.mt_rand(0,255).')">'.mt_rand(1,9).'</span>'; $code.='<span style="color:rgb('.mt_rand(0,255).','.mt_rand(0,255).','.mt_rand(0,255).')">'.mt_rand(1,9).'</span>'; $code.='<span style="color:rgb('.mt_rand(0,255).','.mt_rand(0,255).','.mt_rand(0,255).')">'.mt_rand(1,9).'</span>'; echo "$code";

      推薦:php服務(wù)器

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號