Week 9 Flashcards

1
Q
  • How does a constant differ from a variable?
A

o Defined with the define() function
o Once defined it can be referenced with out the $ symbol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • PHP strings, what is the difference between double quotes and single?
A

o Double “” are interpreted (vars inside will have their values inserted)
o Single ‘’ are not interpreted (will instead print the value)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can PHP variables start with a number? Are they case sensitive?

A

No, yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

PHP and JS are both __________ ___ _______ typed

A

Dynamically and loosely typed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly