PHP, WP/CP | Type: PHPAdding an edit tag in PHP conditional

Add [EDIT] in a PHP conditional, with style tags surrounding:

if (is_singular( 'experience' )) {
    $date = get_the_date('F d, Y');
    echo '<p class="entry-meta"><span class="pointer">«</span>';
    echo '<a href="/health-experiences">Return to Health Experiences</a> | '.$date; edit_post_link( __('[EDIT]', 'textdomain'), ' | <span class="small">', '</span>' );
    echo '</p>';
}