Posts by marconato • 50 points
3 posts
-
0
votes2
answers248
viewsA: Close PHP and ASP connection or not?
To close a connection, use the function mysqli_close: mysqli_close($conexao); Straight from the documentation: Non-persistent Mysql connections and result sets are automatically destroyed when a PHP…
-
1
votes2
answers71
views -
0
votes1
answer644
viewsA: Convert json to array using pure javascript
/* * @param {Object} nested * @returns {Array} */ function nestedToArray(nested) { let arrayOfObjects = []; for (const prop in nested) { if (nested.hasOwnProperty(prop)) {…
javascriptanswered marconato 50