Maison > Article > développement back-end > 字符串偏移量未设立
字符串偏移量未设置。
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $str1 = "no job no address"; function Mystrrev($str1){ $newstr = ""; $len = strlen($str1); for($i = $len; $i >= 0; $i--) { $newstr .= $str1{$i}; } return $newstr; } echo Mystrrev($str1);