To those who said about bringing granola bars/fruit etc, how are you doing that? US federal aviation law prohibits you from bringing any food items in your carryon bags that isn't purchased after the checkpoint.
Where did you read that? Ive taken more food on flights than I can count. True, anything liquid, including food , has to follow the ziploc rule. But as far as food in your personal carry on, if its not on the prohibited list, its ok. Just make sure they are sealed and easily seen (I usually use ziplocs) and Ive never had an issue. No sauces, yogurts, etc., but solids, no problem.
Now, you might not be able to deplane at your destination with them, as some countries dont allow foreign meats and such, but on the plane shouldnt be an issue.

