代码示例:(标识:demo_php_datatypes_pos)
<!DOCTYPE html>
<html>
<body>

<?php
echo strpos("Hello world!","world");
?>  
  
</body>
</html>
运行结果: