User-submitted PHP Projects

1
105 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
101 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
102 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
105 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
107 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

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

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

1
129 reads
zarag1996's picture

Submitted by

zarag1996
Tags:

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

1
115 reads
zarag1996's picture

Submitted by

zarag1996
Tags:

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

1
99 reads
zarag1996's picture

Submitted by

zarag1996
Tags:

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