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
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)
3
Q
Can PHP variables start with a number? Are they case sensitive?
A
No, yes
4
Q
PHP and JS are both __________ ___ _______ typed
A
Dynamically and loosely typed