Electronic foaming dispensers work like liquid pumps but are considered to be more cost effective as they require a smaller amount of soap compared to liquid counterparts without compromising on cleanliness.