024-PHP常用字符串函数(一)
2024-10-08 16:41:56
<?php
$first = "abc";
$second = "aBc";
if(strcmp($first, $second) == )//字串比较
{
print("字符串相等:"."<hr>");
}
else
{
print("字符串不相等"."<hr>");
} print("abcde我是中国人: ".strlen("abcde我是中国人")."<hr>");//字串长度 $text = "hello world";
print(strpos($text, "w")."<hr>");//寻找字串中某字元最先出现处
?>
最新文章
- [bigdata] flume file channel CPU消耗比 memory channel高的原因
- [LeetCode] 8. String to Integer (atoi)
- 【BZOJ 4569】【SCOI 2016】萌萌哒
- CH Round #55 - Streaming #6 (NOIP模拟赛day2)解题报告
- Ubuntu Gnome16.04下安装cuda、theano和opencv
- jsp_注释
- Front-end Developer Interview Questions
- Valid Palindrome
- WebService 学习总结
- sql if
- python3.4.2 安装Pillow
- JavaScript 显示弹出窗口
- Unity 安卓下DLL热更新一(核心思想)
- [bzoj3196][Tyvj 1730][二逼平衡树] (线段树套treap)
- 脚本div实现拖放功能
- Mysql 的 create as 和create like 区别
- MySQL--MHA原理
- Go指针相关
- 可遇不可求的Question之skip-name-resolve模式篇
- mysql str_to_date 字符串 转日期时间