Is ok escaping?

Hi,
Can someone tell me if this is ok escaping?

<?php echo esc_attr( $col ); ?>
escaping to this
<?php echo ( esc_attr( $col ) );?>

Why do you need additional parentheses?

Hi
Is ok like this?
php echo esc_attr( $col ) ?

Hi @innovationweb

You can check this
https://developer.wordpress.org/reference/functions/esc_attr/

Thanks