Tag Archives: Web Design

PHP Mail Function

Send Mail in PHP PHP provides inbuilt function known as mail() function which allow you to send mail directly from your program. This function returns TRUE on success and FALSE when failed. Mail function accept 5 parameters like to, subject, message, headers and  extra parameters. Syntax mail(to,subject,message,headers,parameters) Name Required Description to Yes Mail Address of the receiver or receivers subject Yes Subject… Read More »

PHP Array All Functions

PHP Array Functions The following list show the different function used in an array. – array_change_key_case : Changes all keys in an array – array_chunk : Used to split an array into pieces. – array_column : Used to return the values from a single column in the input array – array_combine : Used to creates an array by using one array for keys and another for its values. – array_count_values : Used to counts all the values of… Read More »

PHP Array Sort Functions

The elements in an array can be either be sort ascending, descending, alphabetical and numerical order. Lets discuss the different sort function used in PHP. – sort() – used to sort arrays in ascending order. – rsort() – used to sort arrays in descending order. – asort() – used to sort associative arrays in ascending order as per values. – ksort() – used to sort associative arrays in ascending order as per key.… Read More »

PHP Array

Introduction to Array When creating long, complex programs, it sometimes becomes difficult to access certain elements in a program. for example there is a limitation for using variables in a program: when you declare a variable, you can assign only one value to it. In certain case , you may want to declare hundreds of variables and… Read More »

PHP Function

Introduction to function A function is a part of independent code that can be use to perform any specific task. Function are use to get the required output. The output entirely depends on the code you specified in it. You can call the same function as many time as you want in the same page. A function does the fallowing things: Accept value… Read More »