Created
June 6, 2014 11:56
-
-
Save RodolfoSilva/71e348cf2fe62ea0456b to your computer and use it in GitHub Desktop.
Simulando resultado do banco de dados utilizando uma matriz
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 | |
$record = array( | |
array( | |
'id' => 1, | |
'titulo' => 'Post 1', | |
'descricao' => 'Este é o meu primeiro post :D' | |
), | |
array( | |
'id' => 2, | |
'titulo' => 'Post 2', | |
'descricao' => 'Este é o meu segundo post :)' | |
), | |
array( | |
'id' => 3, | |
'titulo' => 'Post 3', | |
'descricao' => 'Este é o meu terceiro post :D' | |
), | |
array( | |
'id' => 4, | |
'titulo' => 'Post 4', | |
'descricao' => 'Este é o meu quarto post :)' | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment