Skip to main content

    Include files in PHP

    To include another file into our code include() and require() functions are used with one required parameter i.e. file name that you wanted to include. Difference in both functions is include() will not throw any error when specified file was not found, instead of error it will throw warning. But in case of require it […]

    Read More

    Date & Time in PHP

    date() function is used to format date or time in PHP. Syntax date(format,timestamp) Parameter Description format Required. Specifies the format of the timestamp timestamp Optional. Specifies a timestamp. Default is the current date and time Format is required parameter and there are some characters used to create Date and time format. Below parameters are used […]

    Read More

    Functions in PHP

    Functions are a block of code executed when they are called. We write a set of code in function definition and call that function to perform some task. by using functions code performance can be increased. and we can avoid Rewrite of code. PHP has so many in build functions and they are very helpful […]

    Read More

    Loops in PHP Basics

    Loops are used When we wanted to run a block of code multiple times. There are four looping statements in PHP – while¬†– loops through a block of code as long as the specified condition is true do…while¬†– loops through a block of code once, and then repeats the loop as long as the specified […]

    Read More

    if…else & Switch statements in PHP – Conditional Statements

    Conditional statements allow you to perform some task on the basis of certain conditions PHP has the following Conditional statements. if statement – executes some code if condition is true if…else statement – executes some code if a condition is true and another code if that condition is false if…elseif…else statement – executes code when condition is true […]

    Read More

    Operators in PHP

    Operators are used to perform operations on variables and values. In PHP there are different groups of Operators. Arithmetic operators Assignment operators Comparison operators Increment/Decrement operators Logical operators String operators Array operators Conditional assignment operators Arithmetic operators: Used to perform arithmetic operations like add, subtract, multiply etc. Operator Name Example Result + Addition $x + […]

    Read More

    Quick basics of PHP

    PHP is Hypertext Preprocessor, used to create dynamic webpages wich interacts with databases. Its a very popular programming language. The very most popular database is used with PHP is MySQL. To start with PHP you must be familiar with HTML, CSS & Programming(any language) basics. If you want to quickly brush up These things then you can […]

    Read More