Generators in PHP. If you’ve followed my previous posts about iterators then you’ll know that iteration is an important programming concept, but implementing the required interfaces to create an iterable object can be a hassle at best because of the amount of boilerplate code that is required.
With the release of PHP 5.5, we finally have generators! In this article we’ll take a look at generators which provide an easy way to implement simple iterators without the overhead or complexity of the Iterator interface. How do Generators Work? According to Wikipedia, a generator “is very similar to a function that returns an array, in that a generator has parameters, can be called, and generates a sequence of values”. A generator is basically a normal function, but instead of returning a value it yields as many values as it needs to. Developer Reference.
WebView. SQLite. UI. Perfs. Android. App Inventor Tutorials and Examples: Datepicker. Now available for App Inventor 2!
jQuery UI is a nice library built on top of the jQuery JavaScript Library which provides a lot of effects and user interface widgets. One of them is the Date picker widget, we will use in this example.