PHP

23
1329 reads

February 13, 2013

Parameterized Constructors


Constructors are the functions that are called automatically when object of the class is made.
32
1404 reads

February 13, 2013

Constructors Basic


Constructors are the functions that are called automatically when object of the class is made.
21
1381 reads

February 13, 2013

Use Member Function and Predefined Function in Classes


Functions in PHP can also be used to reduce the code redundancy and we can also make use of predefined functions provided by PHP Library.
30
1524 reads

February 13, 2013

Classes Basic


Classes Makes the way to start with object oriented programming in PHP. It builds up security for your application and also save your time for writing the code again and again.
222
3301 reads

February 13, 2013

string functions


this example shows how to use simple functions of a string like hashing string to MD5 and breaking it down with respect to a known delimiter like whitespace

132
2408 reads

February 13, 2013

399
5805 reads

February 13, 2013

string initialization and concatination


this example shows how to initialize a string and concatenates strings using the dot '.' operator

149
1420 reads

February 13, 2013

sorting and shuffling arrays


this example shows how to sort an array in ascending and descending order and also shows how to shuffle an array using sort(), rsort() and shuffle() funcitons

141
1520 reads

February 13, 2013

looping through arrays


this example to show how to loop through arrays in 2 different ways:
1- normal loop which shows how to use sizeof() function as well

92
1405 reads

February 13, 2013

defining arrays


this example shows how to create arrays in 3 distinctive ways
1- using the array() function which is pre-defined inside php
2- using indexed method like most programming languages