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.


2. special variable properties

1)double-dollar ($$)


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

Last updated