PHP判断一个字符串是否是回文字符串

本文章给大家介绍一个实例,用来判断字符串是不是为回文字符串.实例代码如下:

  1. <!–?php 
  2.   function ishuiwen($str){ 
  3.    $len=strlen($str); 
  4.    $l=1; 
  5.    $k=intval($len/2)+1; 
  6.      for($j=0;$j<$k;$j++){ 
  7.        if (substr($str,$j,1)!=substr($str,$len$j-1,1)) 
  8.           { 
  9.    $l=0; 
  10.    break
  11.      } 
  12.      
  13.     
  14.   } 
  15.   if ($l==1) 
  16.   { 
  17.   return 1; 
  18.   } 
  19.   else 
  20.   { 
  21.   return -1;  
  22.    } 
  23.   } 
  24.    
  25.   $str=12321; 
  26.   echo ishuiwen($str); 
  27. ?> 

波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!

波比源码 » PHP判断一个字符串是否是回文字符串

163 评论

  1. brand avodart avodart ca ondansetron 4mg drug

  2. order spironolactone 100mg generic aldactone generic fluconazole price

  3. order generic ampicillin 250mg buy bactrim 480mg erythromycin 500mg cheap

  4. order accutane 10mg without prescription azithromycin price ivermectin pills canada

  5. buy provigil online stromectol 6mg ca stromectol tablets for humans

  6. isotretinoin 40mg pill accutane generic deltasone 10mg for sale

  7. prilosec for sale purchase essays play online roulette for fun

  8. get assignments done online eassy writing online casino real money paypal

  9. cost domperidone 10mg sumycin usa cheap flexeril

  10. losartan 50mg without prescription cozaar pills buy topiramate 100mg generic

  11. purchase lioresal generic zanaflex sale toradol 10mg tablet

  12. buy tamsulosin 0.2mg online cheap flomax 0.4mg generic order spironolactone 25mg generic

  13. free shipping viagra cialis 5mg us order tadalafil 40mg online

  14. order tretinoin cream without prescription order tadalafil buy avana 200mg without prescription

  15. order nortriptyline 25mg generic cost panadol 500 mg buy paroxetine 20mg generic

  16. Thank you for great content. Hello Administ. Hacklink , Hacklink panel , Hacklink al Hacklink panel

  17. order tadalafil 40mg pill USA tadalafil viagra on line

  18. Great post thank you. Hello Administ . Onwin , Onwin Giriş , Onwin Güncel Giriş , Onwin Yeni Adres , onwin

  19. cialis pills 10mg cialis on sale where can i buy ed pills

  20. order amoxil for sale oral zithromax prednisolone 5mg uk

  21. estradiol 1mg without prescription cheap estradiol prazosin 2mg us

  22. mesalamine 400mg price astelin 10ml brand order avapro 150mg online cheap

  23. lanoxin 250mg sale micardis oral order molnupiravir 200 mg without prescription

  24. cialis 20mg brand cialis 10mg uk overnight delivery for viagra

  25. buy generic arimidex 1mg cheap biaxin catapres us

评论已关闭

Hi, 如果你对这款模板有疑问,可以跟我联系哦!

联系站长
赞助VIP 享更多特权,建议使用 QQ 登录
喜欢我嘛?喜欢就按“ctrl+D”收藏我吧!♡