标签:
<?php function reverse_r($str){ if(strlen($str)>0){ reverse_r(substr($str,1)); } echo substr($str,0,1); return; } reverse_r(‘Hello‘); function reverse_i($str){ for($i=1;$i<=strlen($str);$i++){ echo substr($str,-$i,1); } return; } reverse_i(‘Hello‘);
标签:
原文地址:http://www.cnblogs.com/jacson/p/4857255.html