PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
<?php $previous = array (1); $next = array (); $rows_to_generate = 10; for ( $i =1; $i <= $rows_to_generate ; $i ++) { // the first element in each row is 1 $next [0] = 1; for ( $j =1; $j < $i ; $j ++) { $next [ $j ] = $previous [ $j ] + $previous [ $j -1]; } echo implode( ' ' , $next ) . '<br>' ;
-->
|