Date: PHP date function return current date of server with the requested date format. syntax: The return format is string. $format – Mandatory and data type is string. $timestamp – Optional and data type is integer, time() is the default value. Time: Time function return current unix timestamp. Example For UTC Timezone Click the below […]
Break will end the execution inside the block, whereas Continue will stop the execution at the point and and continue the remaining looping process of following statements: for, foreach, while, do-while and switch structure.
The PHP switch statement is similar to multiple if statement. It will execute the block of code in the different scenario like if statement. Compared to if statement, switch is more readable and maintainable for the multi-level control statement.
The four type of loop statements are supported by PHP. They are while loop, do-while loop, for loop and foreach loop. Find the tutorial and example with demo.
In PHP If else is a control structure and it is the heart topic of PHP Scripts. It will be used whenever you have performed the conditional statements. PHP if statement executes the block of code when the expression evaluates to TRUE
PHP constants are identifier for a simple value. The possible datatypes of constants are boolean, integer, double, and string. Once we defined the constant, we cannot change the value of constant and cannot unset the constant. Characteristics of constant: constant is case sensitive by default The name of a constant is uppercase A valid constant […]
PHP contact form is used to communicate the site owner with customers. The site owner can know the thought of customers regarding their service with the contact form. We have created simple contact form using HTML and PHP. The webmaster can easily pluck this contact form in the new or existing web pages. Process of […]
PHP basic variables: PHP variable is an identifier. It will start with a dollar sign ($). No need to declare any variable before using, like other any programming languages.