The public bus is nearly always the cheapest way in, often costing a small fraction of a taxi, and most airports worldwide have at least one city bus or a low-cost express coach. The trade-off is time and luggage handling, since local buses make many stops and may be crowded. Metro or suburban rail, where it exists, is the sweet spot of cheap and reasonably fast.
Shared shuttles sit in the middle on price but are slower than they look, because they loop through several hotels. They make sense for awkward hours or when your hotel is far from transit.
Walking out of an airport with luggage is rarely practical, since most airports sit well outside town, though a handful of small city airports are genuinely close to a metro stop. One more money-saver: ride-share pickup zones at some airports are a short walk or free shuttle away from the terminal, where fares drop compared to curbside taxis. Check the airport's official website, which always lists ground transport options with current prices.