PHP If else

PHP if else Conditional Statement use in my website In if else Conditional Statement used to check the conditional statement or test condition. we can perform a different action for different condition  There are a various way to use if statement...

PHP Operators

PHP Operators is a symbol which used to perform operations on operands. $num=14+16; Explanation: Here + is the operator and 14,16 are operands $num is variable PHP Operators Types: Assignment Operators Arithmetic Operators Array Operators Bitwise Operators Comparison Operators Logical Operators...

PHP String

PHP String- PHP String: A string is a sequence of characters like “Welcome!” Get The Length of a String The PHP strlen () function returns the length of a string. Example [crayon-6925d9c5e646d033608567/] output: [crayon-6925d9c5e6471827951467/] Count The Number of Words in a String The...

PHP Data Types

PHP Data Types- PHP Data Types, Variables can store data of different types, PHP supports 8 primitive data types that can be categorized further into 3 types: Scalar Types Compound Types Special Types PHP Data Types: Scalar Types There are 4...

PHP Variables

Definition of PHP Variables A PHP variables name cannot start with a number. A variable name can only contain alpha–numeric characters and underscores (A-z, 0-9, and _ ) First of all Variable names are case-sensitive ($male and $MALE are two different variables) We...

PHP Print

PHP Print Statement The major differences to echo are that print only accepts a single argument and always returns 1 The print() function used to output one or more string. PHP print is a language construct, so you don’t need to...

PHP Echo

PHP Echo Features it is a language construct so you are not required to use parentheses with it Therefore always uses parenthesis if you want to use more than one parameters. you know, echo not construct a function PHP Echo is a...