php
2021-01-06
Today, I learned : PHP tutorials
Bookmark : javaTpoint (magic-constants) / tutorialsPoint (intro)
0. PHP
1) echo statement
- can have multiple input variables, separated by comma(,)s.
2) PHP properties
- interpreted language (don't need compilers and such)
- faster than other scripting languages
- can be embedded into HTML.
- object-oriented.
- can create sessions.
- can access / set cookies.
- PHP is a secure language to develop the website. It consists of multiple layers of security to prevent threads and malicious attacks.
1. variable rules
- variable name starts with alphabet or underscore(_).
- variable name is case-sensitive.
- variable name starts with $ sign. constants doesn't.
- static variable is stored dynamically and used globally.
2. special variable properties
1)double-dollar ($$)
PHP supports variable name as a variable.
2021.01.07
bookmark : javatpoint-phpForm
1.special Variables
- special variable starts and ends with double underscore(__).
- case insensitive.
- resolved at compile-time.
2. Array Definintion
3. execution passage
- wrap the shell code with ` (shft+"~").
result : root
4. call by reference
- put ampersand(&) before the variable name.
result : Hello Call By Reference
5. parameter default value
result : Hello Rajesh Hello Sonoo Hello John
6. Associative Array & traversing
result : Key: Sonoo Value: 550000 Key: Vimal Value: 250000 Key: Ratan Value: 200000