Home > Backend Development > PHP Tutorial > 为什么错了?

为什么错了?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 14:10:49
Original
867 people have browsed it

<?php$str = 'Look at the sea';$str{strlen($str)-1} = 'e'$last = strval($str) ;echo $last;?>
Copy after login


回复讨论(解决方案)

$str{strlen($str)-1} = 'e'    这个后面少个分号

因为LZ第三行没加分号。

- -碉堡了

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template