Post Pic

PHP functions

Sometimes we need to write same code at different places. It’s a problem in terms of code maintenance because if we want to change a bit then we have to change many places. PHP functions are self enclosed blocks of code that execute a particular “function”. It often takes many parameters or arguments and returns […]

Read More
Post Pic

PHP For Loop

PHP for loop complex than while loop but more suited. PHP for loop can repeat the code continuously for a defined number of times. When the defined number arrived then goes out of the loop and executes the rest on the code. General Structure of PHP for loop: Example: We can consider same example that […]

Read More
Post Pic

PHP While Loop

“While loop” is the simplest loop in PHP. It allows you to run same code continuously until dissatisfy the condition given by you. That means when the conditions will not be fulfilled, break the loop and run the rest of the codes of the page. Structure of PHP While Loop: Example: The code below executes […]

Read More
Post Pic

PHP array

PHP array is a structured map. Map is actually a type that links values to keys. Group of related data can be stored in one variable using array. For example, if you have many employees data with name, phone, address. You can create an array to hold all information. You need none other than just […]

Read More
Post Pic

Color Picker Using PHP

Hello Guys, Here is a nice demonstration for you to make a color picker using only PHP. I think this will help you to create template theme color a little bit easier. Just Copy and Paste the source code below in a “something.php” file and run it through server or local server. This will look […]

Read More
Post Pic

Responsive Gallery Using Only Bootstrap 3

In the world of web designing Bootstrap is a famous responsive framework. To design a website we use bootstrap a lot but when there is a need of an image gallery for displaying a lot of images, we often use one or more jquery plug-ins for creating those galleries. This sometimes makes the site a […]

Read More

Url, Email and User Id Validation in PHP

There’s a few validation we need frequently.  Email, url and user id validation are required both in Php and JavaScript. Usually I use regular expression for those. For Email Validation For Url Validation For User Id validation Using filter_var() function is quiet easy. By using it we can easily validate email and url without using […]

Read More
Post Pic

Form Validation with Jquery

Generally when we are doing some application we need forms such as login form, registration form and so on. That forms need validation. if we set only server side validation that causes some problems. All kinds of validation is possible in Jquery.  A sample is given below.

Read More
Post Pic

PHP switch statement

PHP switch statement is an excellent substitution of php if or elseif. If you have many conditions for the same variable then you can use it. PHP switch statement is very similar to the php if statement. General Structure of PHP Switch Statement: PHP switch statement example: If you want to write a little program, […]

Read More
Post Pic

PHP if statement

PHP if statement is PHP language’s one of the most important feature. You can use it when you need to execute some code depending on some conditions. General structure of PHP if statement: Example: In the above PHP if statement example the variable $number is assigned a value. Then there applied a checking whether the […]

Read More
 Page 1 of 2  1  2 »

Categories