Last active
February 11, 2019 19:43
-
-
Save SrChach/f098c959521a54b01b07dba17e595404 to your computer and use it in GitHub Desktop.
Testing functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @Lang: PHP | |
* @Description: Función para imprimir el valor y metadatos de una variable | |
*/ | |
function predump($var, $imprime=false, $salir=false){ | |
echo "<pre>"; | |
var_dump($var); | |
echo "</pre>"; | |
echo $imprime? $var : ""; | |
$salir? exit(): true; | |
} | |
/* @Lang: Javascript | |
* @Description: Función que impide salir de la página, para analizar Http requests | |
*/ | |
window.onbeforeunload = () => false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment