Posts by Vinicius • 36 points
2 posts
-
1
votes2
answers1736
viewsA: Format string/float for PHP currency
I hope that code is the solution $num = array("11.111.090,00" , "111.090,00", "090,00" , "0.4875"); foreach ($num as $value) { if (strpos($value, "0") == 0){ $value = str_replace(',', '.', $value);…
-
1
votes1
answer482
viewsA: How to select an option in select in a less laborious way?
I believe this can solve your problem, will leave as Selected the one who has the ID equal to the GET id <select name="company" data-placeholder="Selecione" class="form-control chosen-select"…