Posts by Vinicius Ribeiro • 1 point
2 posts
-
0
votes3
answers101
viewsA: Determine when Loop WHILE should stop PHP
I believe that a simple solution would be to create a variable that accumulates the sum in each iteration, and then you test the value of the variable to jump out of the loop... $somatorio =…
-
0
votes1
answer15
viewsA: Silver Stripe Data
A simple way to do in PHP, assuming the date is a string, would be: function formataData($data) { $t = strtotime($data); return date('d/m/Y ', $t); } //entrada: '2020-07-07' //saida: '07/07/2020'…
arrayanswered Vinicius Ribeiro 1