题目
SENG1050 (T3 2025 PSB) Practice Quiz Week 6
多项选择题
Which of the following variable names are valid in PHP?
选项
A.$MY___Var1Ab13
B.$my variable
C.$_abc_123
D.$4useBY
E.$current
F.$my!Var
G.$for
H.$!Number
查看解析
标准答案
Please login to view
思路分析
Question restatement: Which of the following variable names are valid in PHP?
Options to consider: "$MY___Var1Ab13", "$my variable", "$_abc_123", "$4useBY", "$current", "$my!Var", "$for", "$!Number".
Option 1: "$MY___Var1Ab13". This starts with a dollar sign followed by a sequence that begins with a letter (here, 'M'), and uses only letters, digits, and underscores thereafter. Underscores are allowed anywhere in the identifier, and mixed c......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Question at position 1 Which of the following is a valid variable name?firstVarfirst-varfirst var1stVarAll of the above are valid
Question at position 1 Which of the following is a valid variable name?firstVarfirst-varfirst var1stVarAll of the above are valid
Question at position 1 Which of the following is a valid variable name?firstVarfirst-varfirst var1stVarAll of the above are valid
6. Which of the following are valid Python variable names?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!