Posts by Felipe G. Santos • 23 points
2 posts
-
0
votes1
answer57
viewsQ: how to index an object numerically in Node.js?
I’m getting a . csv like this: animal, branco animal, preto inseto, branco inseto, preto animal, cinza I want to be able to use that mass of data this way: // obj = { animal : [branco, preto, cinza]…
-
2
votes1
answer505
viewsQ: How to call a function within a PHP script from the command line
I want to know if I can call a function inside a script from the command line, using for example: $ php script.php minhaFunção() <argumento> in the case, the function is not within a class (it…