<!DOCTYPE html>
<html>
<body>
<?php
echo strlen("Hello world!"); //输出12 因为空格也算一个
echo strpos("Hello world!","world"); //输出6 在第六个位置出现world
?>
</body>
</html>
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!