Posts by CaMar • 61 points
7 posts
-
1
votes2
answers1217
viewsA: Problems with Notice error: Undefined Property: stdClass:
you are trying to foreach the notas_fiscal property within an object of the stdClass class, which is a native PHP class used to store data temporarily without having to create a class just for that,…
-
0
votes0
answers494
viewsQ: Error in Poser when performing dumpautoload
I’m using Laravel 5.7 and when I execute the command composer dumpautoload -o I get the following error from commiserate: [Runtimeexception] File at…
-
2
votes1
answer104
viewsQ: Laravel sort items from one table from the values of another
I have two tables, a call proposals and another propostas_items propostas -id -nome -descricao propostas_itens -id -proposta_id -quantidade -valor A proposal has many items, I need to list the…
-
0
votes2
answers36
viewsA: Problem in return after sending data! HTML & PHP. I thought echo would appear when sending the data, but nothing appears
try the following code, the code tested and is 100% functional <!DOCTYPE html> <html> <head> <title>Exercicio 3</title> </head> <body> <?php // Define um…
-
0
votes1
answer47
viewsA: Variable passed to view does not contain the set value
Do not use the Compact() function use the Extract() function it already predicts this problem and allows you to define a prefix in these cases where there are variables with the same name, because…
-
1
votes1
answer61
viewsA: Random inside of Random
I’ll explain to you better, first you will create a variable called $group that will be an array within this array you will create two more array each containing 2 sites. $grupo = [ [ 'site1',…
-
1
votes1
answer55
viewsA: Searching elements of a PHP array
Hello, First you will not need to loop to test if the key exists just use this function that already does this: array_key_exists http://php.net/manual/en/function.array-key-exists.php Knowing that…