echo "\"center\"> 1. \" \"
2.
echo <<<theEnd line 1 line 2 line e theEnd
实例
随机三张图片(banner)
1 php 2 $pictures = array('tire.jpg', 'oil.jpg', 'spark_plug.jpg', 3 'door.jpg', 'steering_wheel.jpg', 4 'thermostat.jpg', 'wiper_blade.jpg', 5 'gasket.jpg', 'brake_pad.jpg'); 6 7 shuffle($pictures); 8 ?> 9 10 11Bob's Auto Parts 12 13 14 15Bob's Auto Parts
161730 3118
2919 20 php 21 for ($i = 0; $i < 3; $i++) { 22 echo " 28; 23 echo $pictures[$i]; 24 echo "\"/> "; 25 } 26 ?> 27
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.cnPrevious article:PHP6新特性分析,php6新特性Next article:[PHP]利用XAMPP搭建本地服务器, 然后利用iOS客户端上传数据到本地服务器中(一.安装XAMPP),xamppiosRelated articles
See more