I have the following code
while($row = $usafisRSP->fetch_assoc()) {
$id = $row['id'];
$Applicantid = $row['Applicantid'];
$unique_num = $row['unique_num'];
// .................
$hidden_fields = array($Applicantid, $unique_num, $regs_t ....);
$hidden_values = array();
foreach ($hidden_fields as $key => $value) {
$hidden_values[$value] = "$key = ".base64_decode($value)."<br>";
echo $hidden_values[$value];
}
}
and the result is something like this
0 = 116153840 1 = 136676636 2 = 2010-12-17T04:12:37.077 3 = XQ376 4 = MUKANTABANA
I would like to replace 0, 1, 2, 3 etc with some custom values like “Id”, “application name” to make the result like
id = 116153840 application name = 136676636 etc ..
how can I do that ?
Replace the
$hidden_fields = array(...line with the following:If you want to suppress all fields with value 0, either use
(this will completely omit the 0-entries) or
(this will leave them blank). If you’re using an older version than 5.3, you’ll have to replace the anonymous functions with calls to create_function.