I would like to know how I return more than one property in PHP. Below is the code where I return the user name and wanted to return, in addition, his registration. I tried to do the same thing just by adding the 'enrollment', but it did not work.
<?php
include('connect.php');
session_start();
if($_SESSION['logado']) {
$nome = $_SESSION['nome'];
//$matricula = $_SESSION['matricula'];
}
echo json_encode(array('nomeUsuario' => $nome));
//'matricula' => $matricula));
?>