RU beehive logo ITEC dept promo banner
ITEC 325
2018fall
ibarland

array practice

Review highlights:

checkpoint: we spent the whole class discussing this and related thoughts, and it seemed to be worth it.

Okay, we watched the video about looping over arrays, in php, and, writing the function "ol". So now we have a utils_php.txt (and utils-test_php.txt) with the code for hyperlink and ol.

TASK: write a function which takes in a bunch of URLs, and returns an html-ordered-list of those as clickable links.

TASK, version 2: as before, but the input will be key/value pairs of

Pro tip: array_map!


Using arrays and nested loops, to create html radio-buttons

coming up: We'll visit this example after discussing html input tags.

Design exercise: We want to set up a web-form, where people enter information about PokemonOkaymon.

discussion answers: If solutions are not already being displayed, see php-arrays-practice-soln.html for a sketch of where the discussion might lead.
distance lecture version: breeze video (1h42m); and the tests/code typed therein (roughly same as on this page).

video from distance lecture (breeze), 2017-feb-07 (1h42m): review forms, and work through radioTable
logo for creative commons by-attribution license
This page licensed CC-BY 4.0 Ian Barland
Page last generated
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.