User-submitted PHP Projects

1
270 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

Run It Now!
1
255 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

Run It Now!
1
231 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

Run It Now!
1
246 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

Run It Now!
1
243 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

Run It Now!
1
282 reads
smail1995's picture

Submitted by

smail1995
Tags:

PHP - Sort Functions For Arrays
In this chapter, we will go through the following PHP array sort functions: sort() - sort arrays in ascending order rsort() - sort arrays in descending order asort() - sort associative arrays in
Demo Url: 
http://ow.ly/aX6G30gVuFH

Run It Now!
1
264 reads
smail1995's picture

Submitted by

smail1995
Tags:

PHP 5 Global Variables - Superglobals
$GLOBALS is a PHP super global variable which is used to access global variables from anywhere in the PHP script (also from within functions or methods). PHP stores all global variables in an array
Demo Url: 
http://ow.ly/GTt530gVtXj
Github Url: 
PHP $GLOBALS

Run It Now!
1
277 reads
zarag1996's picture

Submitted by

zarag1996
Tags:

dsadsadsa
Demo Url: 
http://curs.io/8F2dqKx

Run It Now!
1
255 reads
zarag1996's picture

Submitted by

zarag1996
Tags:

PhoenixBotClassEdition
Demo Url: 
http://curs.io/UqPx93V

Run It Now!
1
244 reads
zarag1996's picture

Submitted by

zarag1996
Tags:

WordPress Comment Count Fix
Demo Url: 
http://curs.io/ptDLK3N

Run It Now!