<?php$str = 'Look at the sea';$str{strlen($str)-1} = 'e'$last = strval($str) ;echo $last;?>
回复讨论(解决方案)
$str{strlen($str)-1} = 'e' 这个后面少个分号
因为LZ第三行没加分号。
- -碉堡了
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn