Posts by Edinho Almeida • 316 points
3 posts
-
0
votes1
answer548
viewsA: Foreach with this type of JSON (PHP)
json_decode in this case will return only associative arrays because all json is keyed { There is in json the bracket [. In this case you won’t find an element with index 0 in any json node.…
-
3
votes1
answer1810
viewsA: Laravel Results of a Query Builder for eloquent model
One way would be to select only the user ids in your Builder query and mount an array with the result // users.* alterei para users.id $users = DB::select( DB::raw(" SELECT users.id from users,…
-
17
votes1
answer783
viewsA: Algorithm for name generation
I made an algorithm of this in 2008. Ran in PHP. I called it "pronounceable password" The initial idea was like the @Motta comment. Two lists: one of consonants and one of vowels: ListaConsoantes =…
algorithmanswered Edinho Almeida 316