Answer the question
In order to leave comments, you need to log in
Why is array() always printed?
function MessageShow()
{
$Message = "";
if (isset($_SESSION['message'])) $Message = $_SESSION['message'];
print_r($Message);
$_SESSION['message'] = array();
}
Answer the question
In order to leave comments, you need to log in
const getProp = (obj, path) => path.split('.').reduce((p, c) => p ? p[c] : null, obj);
const id = getProp(e, 'path.1.attributes.uid.textContent');
if (isset($_SESSION['message']) and $_SESSION['message']!=null) {
$Message = $_SESSION['message'];
print_r($Message);
}
$_SESSION['message'] = array();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question