I have this code for the_excerpt :
function get_excerpt(){
$excerpt = get_the_content();
$excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$excerpt = substr($excerpt, 0, 640);
$excerpt = substr($excerpt, 0, strripos($excerpt, " "));
$excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt));
$excerpt = $excerpt.'<a class="read-more" <a href="'. get_permalink($post->ID) . '">read more.</a>';
return $excerpt;
}`
I want to disable from one post the_excerpt. I think that this part of function helps but this is not happened.
if( in_array( $post->ID, array(post_ID) ) )
get_the_content();
else
get_excerpt();