What is this mark for “? function()” [closed]

That’s called Ternary Operator.

if( ! empty( $_POST['variable_b'] ) {
    $variable = explode( "\n", trim( $_POST['variable_b'] );
} else {
    $variable = array();
}

You can see PHP Shorthand If/Else Using Ternary Operators (?:) for more details.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)