default : do { if ( 50 < strlen( $str ) ) { $out = substr( $str, 0, 50 ); } else { $out = $str; } } while(); // burasına birşey gelmesi lazım? return $out;