关于这段代码option的问题

WBOY
Release: 2016-06-23 13:42:56
Original
776 people have browsed it



我在网上找的PHP视频,请教各位这种写法是什么意思?


回复讨论(解决方案)

<select><option value='1' >A</option><option value='2' selected >B</option><option value='3' >C</option></select>
Copy after login

是下拉列表框的选项,代码正在循环输出这些选项到网页。
{}在""中是表示他里面的是一个变量,不是一个普通的字符串。

那我明白了谢谢!

source:php.cn
Statement of this Website
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.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!