PHP function can be defined like this.
Also, we should know how to set parameters in PHP function.
Here is the variable scope within funcitons.
Array
This is how defining and accesing an Array in PHP.
This is how to use loop with PHP Array.
isset() function
- Takes a variable name as its parameter
- Return true if a value has been set
- Return false otherwise
Now, I wand to share the in-class activity.
And, this is the output from the question:
PHP has also SuperGlobal Arrays!
- Special predefined associative arrays
- Commonly used information about HTTP headers, query string parameters...
- Always in scope and ready to use without the global keyword.
'Web Programming π > Back-End π₯·π»' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
PHP Exercise: GuessGame (0) | 2023.04.25 |
---|---|
PHP Exercise: popcorn bill (0) | 2023.04.25 |
PHP Form (0) | 2023.04.25 |
PHP Basics (0) | 2023.04.25 |
PHP Setup (0) | 2023.04.13 |