Checks whether the specified city name is well-formatted.
Syntax
public static function city ($city)
Parameters
city
A string value that specifies the city name to check.
Returns
A boolean which is true if the city name is well-formatted, false otherwise.
Remarks
A well-formatted city name should be a string 2 to 50 characters long.