Posts by Adriano Fernandes • 37 points
5 posts
-
0
votes3
answers1880
viewsA: Send data from an html table to php
Using the lib @Bonifazio indicated: php data. <?php $data = json_decode($_POST['dados_tabela'], true); /* $data terá o seguinte valor: array( array( "Codigo": 1 , "Nome": "Carlos" ) ... os demais…
-
0
votes2
answers906
viewsA: What’s the best way to call files?
The best practice would be to leave the resource calls in the View, as it is to her that they will serve. Just like @leonardopessoa commented on your question, you can create templates that provide…
-
1
votes2
answers726
viewsA: Code within parentheses
In the second way you are creating a Closure: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Closures The difference is that in a closure you create a new scope and the variables and…
-
0
votes2
answers317
viewsA: Personalize PHP session cookie
Have you seen this lib: https://github.com/delight-im/PHP-Cookie Modern cookie management for PHP: This library provides a static method compatible with PHP’s setcookie (...) function, but includes…
-
1
votes5
answers227
viewsA: What are strings started with @inside PHP comments?
Tags that identify certain information within a documentation block or Doccomment, introducing a context to the data, and help self documentation tools separate the information. In PHP for example,…
phpanswered Adriano Fernandes 37