<?php
$REQUEST['nome'] = 'joao';
$REQUEST["ra"] = 'teste';
$REQUEST["gender"] = 'teste';
$REQUEST["idade"] = 'teste';
$REQUEST["endereco"] = 'teste';
$REQUEST["telefone"] = 'teste';
$REQUEST["email"] = 'teste';
$_SESSION['cadastro'] = [];
$cads = count($_SESSION['cadastro']);
if($cads == 0){
$_SESSION['cadastro'][0] = $REQUEST;
}else{
$new_cad = $cads + 1;
$_SESSION['cadastro'][$new_cad] = $REQUEST;
}
PD9waHAKCiRSRVFVRVNUWydub21lJ10gPSAnam9hbyc7CiRSRVFVRVNUWyJyYSJdID0gJ3Rlc3RlJzsKJFJFUVVFU1RbImdlbmRlciJdID0gJ3Rlc3RlJzsKJFJFUVVFU1RbImlkYWRlIl0gPSAndGVzdGUnOwokUkVRVUVTVFsiZW5kZXJlY28iXSA9ICd0ZXN0ZSc7CiRSRVFVRVNUWyJ0ZWxlZm9uZSJdID0gJ3Rlc3RlJzsKJFJFUVVFU1RbImVtYWlsIl0gPSAndGVzdGUnOwoKc2Vzc2lvbl9zdGFydCgpOwokX1NFU1NJT05bJ2NhZGFzdHJvJ10gPSBbXTsKJGNhZHMgPSBjb3VudCgkX1NFU1NJT05bJ2NhZGFzdHJvJ10pOwoKaWYoJGNhZHMgPT0gMCl7CgkkX1NFU1NJT05bJ2NhZGFzdHJvJ11bMF0gPSAkUkVRVUVTVDsKfWVsc2V7CgkkbmV3X2NhZCA9ICRjYWRzICsgMTsKCSRfU0VTU0lPTlsnY2FkYXN0cm8nXVskbmV3X2NhZF0gPSAkUkVRVUVTVDsKfQoKcHJpbnRfcigkX1NFU1NJT04pOw==