An array in PHP is actually an ordered map. A map is a type that maps values ​​to keys. This type is optimized in several ways, so you can use it as an array, or a list (vector), hashtable (which is an implementation of a map), dictionary, collection, stack, queue and probably more. As you may have another PHP array as a value, you can also quite easily simulate trees.
Posts Tagged 'PHP Tutorials'
TUTORIAL - Sending email to multiple recipients with mail () function
See how to send an e-mail from PHP for more than one recipient:
Note: Remember that the mail () function was added in PHP 4 and that for the e-mail is sent it is necessary that your server has configured / running an SMTP server.
PHP TUTORIAL - Send a file to the server
PHP supports many features, so its great success among developers seeking ease of programming, database support,
runs independently of the operating system and hardware, among others.
Among the features of PHP is support for sending files to the server through an HTML form. Any type of [...]
TUTORIAL - Help, FAQ XAMPP
XAMPP does not work on Windows XP SP2!
Right! But here, Microsoft has released a new firewall. This firewall blocks the ports 80 (http) and 443 (https) and the server will not boot (more). A quick solution: Turn off the Microsoft firewall with the toolbar and try to start XAMPP again. Of course everyone can define their own exceptions to the firewall in the Security Center. The following ports are required for basic operation:
http 80 (HTTP)
https 443 (SSL)
mysql 3306
And XAMPP for other services: ...
TUTORIAL - Using Cookies in PHP
A cookie is a file that is created by the site user's computer, containing data for later use by the site.
An example of use of sites that create cookies are cookies that you do not need to enter your password when you access it again. Usually cookies are also used to store user preferences on the site.
TUTORIAL - Using UTF-8 correctly, Latin accent in php
A while ago I needed to make a website that would record and read data in Japanese and Portuguese all in the same database. The solution to this was to use UTF-8, forgetting the famous ISO-8859-1 (Latin).
Using UTF-8 correctly you will get rid of all the problems of stress that may be caused on your page and get rid of instead of functions as utf8_encode () and derivatives.
TUTORIAL - Redirect via PHP
To redirect the user via php is very easy to just put a page named index.php in the root of the server with the following code
TUTORIAL - Installing and configuring Moodle LMS
Moodle is a LMS (Learning Management System) that has been widely used as a Virtual Learning Environment in several courses, both in distance education as a tool to support teaching presencial.Esse great use can be justified by the flexibility of the system (functionality can be added easily through modules), the translation in several languages ​​[...]
TUTORIAL - Calendar with navigation between the dates
Script that displays a calendar with dates for navigation (previous month and months later) and a form to fill out directly to the desired date appears.
TUTORIAL - How to translate a page with PHP
If a page is visited by people from the four corners of the world will need to have the page available in several languages, or at least not their mother language and in English!
To do this may sound complicated ... but it's very simple! Just use files with constant and then load the file corresponding to the selected language.









