当前位置:网站首页>Judge whether the string is palindrome
Judge whether the string is palindrome
2022-07-28 09:53:00 【MountainYanYL】
If there are any deficiencies, please point out
$num = "abc126321cba";
$str1 = strval($num);
$str2 = strrev($str1);
if(strcmp($str1,$str2) == 0){
echo 'yes';
}else{
echo 'no';
}
边栏推荐
- 关于CLR GC调优的一些问题
- NTU Lin Xuantian's "machine learning cornerstone" problem solving and code implementation | [you deserve it]
- Go language slice vs array panic runtime error index out of range problem solving
- ECCV 2022 | 无需微调即可推广!基于配准的少样本异常检测框架
- WPF布局之控件随着窗口等比放大缩小,适应多分辨率满屏填充应用
- Buckle 376 swing sequence greedy
- Window源码解析(三):Window的更新机制
- 脉冲风采|Committer 专访——腾讯工程师张大伟喊你吃“螃蟹”啦
- Retrofit源码解析
- 领域事件和集成事件没那么高大上
猜你喜欢

go语言切片Slice和数组Array对比panic runtime error index out of range问题解决

Learn a hammer.Net zero foundation reverse tutorial lesson 3 (shell and homework)

What is cross domain? How to solve the cross domain problem?

【日志】日志干什么的?日志工厂是什么?log4j 的配置和使用? log4j.properties 文件配置、log4j jar包坐标

使用Xposed对软件进行破解
![[log] what does a log do? What is a log factory? Configuration and use of log4j? log4j. Properties file configuration, log4j jar package coordinates](/img/ae/096b558bc1342447205b442a244aae.png)
[log] what does a log do? What is a log factory? Configuration and use of log4j? log4j. Properties file configuration, log4j jar package coordinates

Introduction to SD card (based on spec3.0)

软件测试与质量学习笔记1---黑盒测试

OSS直连上传-Rails服务实践

老板:公司系统太多,能不能实现账号互通?
随机推荐
路由器固件解密思路
SeekTiger生态通证STI 新进展,4月14日登录 ZB
数据不会说谎,Plato Farm就是元宇宙龙头
NTU Lin Xuantian's "machine learning cornerstone" problem solving and code implementation | [you deserve it]
数据库高级学习笔记--存储结构
MATLAB的数列与极限运算
MySQL master-slave architecture. After the master database is suspended and restarted, how can the slave database automatically connect to the master database
mq的学习
Arouter source code analysis (II)
FixedWindowRollingPolicy简介说明
实验四 使用fdisk对硬盘进行管理
数据库高级技术学习笔记1--Oracle部署和PL/SQL综述
ARouter源码解析(一)
Take you to wechat applet development in 3 minutes
PHP7 中 ?? 与? :的区别
使用IdentityServer出现过SameSite Cookie这个问题吗?
ConsoleAppender简介说明
Use xposed to crack the software
redis的基础知识
Domain events and integration events are not so big