Answers for "codigo log in php"

PHP
1

log php

<?php
function console_log($output, $with_script_tags = true) {
    $js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) . 
');';
    if ($with_script_tags) {
        $js_code = '<script>' . $js_code . '</script>';
    }
    echo $js_code;
}
Posted by: Guest on August-12-2020
0

how to log out php

session_destroy();
session_unset();
unset($_SESSION["loggedin"]);
$_SESSION = array();
Posted by: Guest on July-13-2021

Browse Popular Code Answers by Language