strchr - 语法
strchr(string,search,before_search);
它用于搜索字符串在另一个字符串中的第一个匹配项
Sr.No | 参数 & 描述 |
---|---|
1 |
string 它返回要搜索的字符串 |
2 |
search 它返回要搜索的字符串 for |
strchr - 返回值
它返回字符串的其余部分
strchr - 示例
<?php echo strchr("Hello world!","world"); ?>
这将产生以下输出-
world!