problem description
A judgment about the data removes the value from the array if it is empty, and passes the MD5 encrypted character value to the value if it is not empty.
for example, an array of $data has $data ["pass"]. If $data [" pass"] is empty, unset () is dropped, and if it is not empty, $data ["pass"] = md5 ($data [" pass"]).
how can I use a ternary expression instead of if to judge? Ask for expert advice.