Basically, the time stamp is the number of seconds from Jan 1, 1970, @ 00:00 GMT. This measurement is used by the date function of PHP.
To split strings, the PHP provides a function called explode(). The PHP explode function takes a delimiter by which it will find and split the given string and return an array of split string.
In this chapter, we will explain how to use implode() function of PHP to convert an array to a string. Note that the Join() is an alias to implode() function.
PHP array is a data structure that can hold one or more values in a single variable. The array index of PHP starts from 0.
In this chapter, you will be given a basic idea of PHP syntax that will help you developing PHP foundation.
The echo statement in PHP is used to display the output of a given expression. You can use the echo statement to display any type of data in PHP. For example numbers, strings, variables or any other expression.
Variables in PHP are declared/denoted by using a leading $ sign. e.g. The assignment operator used in variables is ‘=’ sign where a variable is on the left and expression to be at the right side.
The PHP configuration file is read whenever PHP starts up. For the server module versions of PHP, this takes place just once when the web server is started. For the CGI and CLI versions, it occurs on every invocation.
PHP provides $_FILES, which is a built-in array. The PHP $_FILES array contains all information regarding uploaded files.
Handling file attributes are managed in this array, for example, a file name, size, file type (.jpg, .gif, pdf, png etc.).
PHP provides a very simple way for developers to send email from their websites. This is accomplished by using the PHP mail() function.In this chapter, we will explain using the mail function in PHP for simple text and HTML emails.