PHP中的回文 [英] Palindrome in php
本文介绍了PHP中的回文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个简单的代码来在PHP的字符串中找到回文子字符串,我在互联网上看到过很多文章,但它们足够令人困惑:confused:
I need a simple code to find a palindromic substring in a string in PHP, I have seen articles on internet but they are confusing enough :confused:
推荐答案
你不能弄清楚逻辑吗?
我建议您将问题分解为几个小问题,例如,开始制定一种算法来检查字符串是否为回文.
:)
Cannot you work out the logic?
I suggest you to break down the problem into small sub-problems, start, for instance, to formulate an algorithm for checking if a string is palindromic.
:)
这篇关于PHP中的回文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文