If ( $asc( $left( $nick ,1)) <= 90 ) { echo character is uppercase} else { echo character is lowercase }