User-submitted PHP Projects

1
95 reads
Create a modal style for two images PHP HTML CSS JS
Demo Url: 
http://eurs.io/sAUZwJq

1
88 reads
elmahdibadi's picture

Submitted by

elmahdibadi
problem modal images
i have a problem in modal images

i can't apply the modal in many images


Run It Now!
1
93 reads
smail1995's picture

Submitted by

smail1995
Tags:

Basic PHP Syntax
The default file extension for PHP files is ".php". A PHP file normally contains HTML tags, and some PHP scripting code. Below, we have an example of a simple PHP file, with a PHP script that us
Demo Url: 
http://ow.ly/Tdpb30gVQHr

1
62 reads
smail1995's picture

Submitted by

smail1995
Tags:

PHP echo and print Statements
echo and print are more or less the same.
Demo Url: 
http://ow.ly/Blkj30gVQcW

1
79 reads
smail1995's picture

Submitted by

smail1995
Tags:

PHP Data Types
Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating point numbers - also called
Demo Url: 
http://ow.ly/6dUQ30gVPrb

1
70 reads
smail1995's picture

Submitted by

smail1995
Tags:

PHP Constants
Create a PHP Constant To create a constant, use the define() function. Parameters: name: Specifies the name of the constant value: Specifies the value of the constant case-insensitive: Specifie
Demo Url: 
http://ow.ly/8THn30gVOjP

1
64 reads
smail1995's picture

Submitted by

smail1995
Tags:

PHP 5 if...else...elseif Statements
Very often when you write code, you want to perform different actions for different conditions.
Demo Url: 
http://ow.ly/7gaC30gVNj9

1
73 reads
smail1995's picture

Submitted by

smail1995
Tags:

The PHP switch Statement
This is how it works: First we have a single expression n (most often a variable), that is evaluated once. The value of the expression is then compared with the values for each case in the structure.
Demo Url: 
http://ow.ly/7V8k30gVD0d

1
71 reads
smail1995's picture

Submitted by

smail1995
Tags:

The PHP for Loop
Parameters: init counter: Initialize the loop counter value test counter: Evaluated for each loop iteration. If it evaluates to TRUE, the loop continues.
Demo Url: 
http://ow.ly/G07p30gVC8z

1
75 reads
smail1995's picture

Submitted by

smail1995
Tags:

PHP 5 Functions
In the example below, we create a function named "writeMsg()".
Demo Url: 
http://ow.ly/Fofk30gVvb3