Posts by Otávio Silveira • 23 points
2 posts
-
1
votes1
answer54
viewsQ: Name in the index of an array
I need to create an array or object, but with dynamic name/index, like this of the example, but the name must come from a variable: var1 = "testeIndex"; var obj = { var1 : { 'elemento1' : 'dado1',…
-
1
votes3
answers1169
viewsA: Calculator in php using buttons
Instead of case = 'Soma', the right case is 'Soma' switch ($variable) { case 'value': # code... break; default: # code... break; }…
phpanswered Otávio Silveira 23