The code is this one:
$vendors[] = array(
"id" => $row['vendorID'],
"name" => $row['name'] == "" ? "-" : $row['name'],
"tel1" => $row['phone1'] == "" ? "-" : $row['phone1'],
"tel2" => $row['phone2'] == "" ? "-" : $row['phone2'],
"mail" => $row['email'] == "" ? "-" : $row['email'],
"web" => $row['web'] == "" ? "-" : $row['web']);
Can somebody explain me exactly what it is? Look like an Alternative syntax but I haven't managed to find infos.
Thanks you