Oromia State University: School of Science and Technolgy Departement of Information Technolgy Indivdual Assignment
Oromia State University: School of Science and Technolgy Departement of Information Technolgy Indivdual Assignment
PHP Comments
Single line comments start with double forward slashes // and they end in the same line.
Multiple line comments start with a forward slash followed by the asterisk /* and end with
the asterisk followed by the forward slash */.
o PHP String Variables: Astring variable is used to store and manipulate text. String variables
are used for values that contain characters.
o PHP Concatenation Operator: There is only one string operator in PHP. The concatenation
operator (.) is used to join two string values together.
o PHP string manipulation function: The strlen() function returns the length of a string, in
characters. The strpos() function is used to search for a character or a specific text within a
string.
o PHP Operators :
Arithmetic operators: used to perform arithmetic operations on numeric data. The
concatenate operator works on strings values too.
Assignment Operators: used to assign values to variables. They can also be used together
with arithmetic operators.
Comparison operators: used to compare values and data types.
Logical operators: When working with logical operators, any number greater than or less
than zero (0) evaluates to true. Zero (0) evaluates to false
Commenting source code is also very important when multiple developers have to work on
the same project.
Thank you