Hello World Program:
PHP Variables:
There are three types of variables
- Global
- Local
- Static
Global Variable:
Local Variable:
Static Variable:
Data Types:
- String
- Integer
- Float
- Array
- Object
- Null
- Boolean
String Manipulation functions:
- Finding the length of the string
- Count the number of words in a string
- Reverse of a string
- Search for a specific text within a string
- Replace text within a string
Conditional Statements:
- if
- if...else
- if...else ladder
- switch
Loops:
- while
- do... while
- for
- foreach
Functions:
Reading data from file line by line:
Writing data to a file and read data from same file:
Reading user input from keyboard and writing on the screen: