Home > Article > Backend Development > php echo字符串的连接格式,phpecho字符串格式_PHP教程
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:[PHP]利用XAMPP搭建本地服务器, 然后利用iOS客户端上传数据到本地服务器中(一.安装XAMPP),xamppios_PHP教程Next article:CodeIgniter表单验证方法实例详解,codeigniter表单_PHP教程Related articles
See more
- round robin weighted round robin algorithm php implementation code
- PHP strip_tags() function to remove HTML, XML and PHP tags from strings
- Introduction to PHP strip_tags() to remove HTML, XML and PHP tags
- PHP removes html tags--detailed explanation of the difference between strip_tags and htmlspecialchars
- PHP strip_tags method to retain multiple HTML tags