-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (27 loc) · 898 Bytes
/
index.php
File metadata and controls
38 lines (27 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/******
* @author Tiago ACP
* Testando algoritmo
* ****/
require_once "./Product.php";
require_once "./User.php";
$user = new User();
$userObject = $user->allArray($user->user);
$product= new Product();
$productObject = $product->allArray($product->product);
echo "<br>###### Lista de Produtos ######<br>";
foreach($productObject as $item){
echo "ID: ".$item->id."<br>";
echo "Descricao: ".$item->descricao."<br>";
echo "Estoque: ".$item->estoque."<br>";
echo "Preço: R$ ".$item->preco."<br>";
echo "_____________________________________<br>";
}
echo "<br>###### Lista de Usuários ######<br>";
foreach($userObject as $item){
echo "ID: ".$item->id."<br>";
echo "Nome: ".$item->nome."<br>";
echo "E-mail: ".$item->email."<br>";
echo "Credencial: ".$item->credencial."<br>";
echo "_____________________________________<br>";
}