src/Faker/Address.php
public static function city()
    {
        return sprintf(
            self::pickOne(array(
                '%1$s %2$s%4$s',
                '%1$s %2$s',
                '%2$s%4$s',
                '%3$s%4$s',
            )),
            self::cityPrefix(),
            Name::firstName(),
            Name::lastName(),
            self::citySuffix()
        );
    }
public static function city()
    {
        return sprintf(
            self::pickOne(array(
                '%1$s %2$s%4$s',
                '%1$s %2$s',
                '%2$s%4$s',
                '%3$s%4$s',
            )),
            self::cityPrefix(),
            Name::firstName(),
            Name::lastName(),
            self::citySuffix()
        );
    }
public static function city ( ) { return sprintf ( self :: pickOne ( array ( '%1$s %2$s%4$s' , '%1$s %2$s' , '%2$s%4$s' , '%3$s%4$s' , ) ) , self :: cityPrefix ( ) , Name :: firstName ( ) , Name :: lastName ( ) , self :: citySuffix ( ) ) ; }
Generate a random city name.

@access public
@static
@return string City name
Generate a random city name .