Home  >  Article  >  Backend Development  >  关于这段代码option的问题

关于这段代码option的问题

WBOY
WBOYOriginal
2016-06-23 13:42:56777browse



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


回复讨论(解决方案)

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

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

那我明白了谢谢!

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.cn