Generally for checks that modify only one line I have avoided the use of keys, since PHP accepts this method, but I rarely see codes from other programmers like this ... Examples
My method
if($thumb->SaveInDB('imagens','img'))
$ok = true;
else
$ok = false;
Normal method
if($thumb->SaveInDB('imagens','img'))
{
$ok = true;
}
else
{
$ok = false;
}
Does it make any difference to use the "{}" keys in these cases? is there the possibility of php returning error or something of the sort?