We use real-valued functions to give characterizations of some topological spaces in which compact subsets are (regular) G δ , such as c-stratifiable spaces, kc-semi-stratifiable spaces. Also, characterizations of some other spaces such as K-semimetrizable spaces, strongly first countable spaces are obtained