Ruby: For loop
Could it be any simpler? This is FOR-ing through a collection, array, hash, zoo, snorkel, what have you. <% for book in books %> <%= book %> <% end %>
Could it be any simpler? This is FOR-ing through a collection, array, hash, zoo, snorkel, what have you. <% for book in books %> <%= book %> <% end %>
This is extremely helpful when trying to figure out what is going on in your page. When troubleshooting or just trying to figure out what data is in that mysteriously finicky array, this is a charmer: Var_Dump the contents of an Array <?php $arr = array(); //start the array empty $arr[] = 1; // these [...]