Last active
February 8, 2017 14:33
-
-
Save YurePereira/e7edb2b1375a4f4fb92f3728d69c75f5 to your computer and use it in GitHub Desktop.
Criando Array associativos no PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $myArray = array( | |
| 'nome' => 'João', | |
| 'sobrenome' => 'Carlos', | |
| 'idade' => 30, | |
| 'telefone' => '3345-4233', | |
| 1.10 => '1',//índice com Float | |
| ); | |
| print_r($myArray); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment