Class02 More Arrays MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.

Slides:



Advertisements
Similar presentations
Arrays Strings and regular expressions Basic PHP Syntax CS380 1.
Advertisements

PHP Conditions MIS 3501, Fall 2014 Jeremy Shafer Department of MIS Fox School of Business Temple University September 11, 2014.
ITC 240: Web Application Programming
CS 206 Introduction to Computer Science II 03 / 06 / 2009 Instructor: Michael Eckmann.
Week 10 Recap CSE 115 Spring For-each loop When we have a collection and want to do something to all elements of that collection we use the for-each.
CSE 341 Lecture 24 JavaScript arrays and objects slides created by Marty Stepp
Class03 Introduction to Web Development with PHP MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University.
Class02 Introduction to web development with PHP MIS 3501, Fall 2015 Brad N Greenwood Department of MIS Fox School of Business Temple University 8/27/2015.
Arrays and Collections Tonga Institute of Higher Education.
Class11 Introduction to relational databases and MySQL MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University.
Class06 Conditional Statements MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University 9/10/2015 © 2014,
Class03 Introduction to Web Development (Hierarchy and the IDE) MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University.
Class01 Course Introduction MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/12/2016.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
Form Data (part 2) MIS 3502, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/10/2015 Slide 1.
Form Data (part 1) MIS 3502, Fall 2015 Brad Greenwood, PhD Department of MIS Fox School of Business Temple University 11/10/2015.
Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.
Class07 PHP: loops and includes MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University 9/15/2015.
A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
Class05 How to get data from a form MIS 3501, Fall 2015 Brad N Greenwood, PhD MBA Department of MIS Fox School of Business Temple University 9/8/2015.
Class02 Introduction to web development concepts MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
Sessions and cookies MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 4/12/2016.
JavaScript, AJAX and JSON MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/9/2016.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
Class03 Introduction to Web Development (Hierarchy and the IDE)
Sessions and cookies MIS 3501 Jeremy Shafer Department of MIS
Form Data (part 2) MIS 3502, Fall 2015 Jeremy Shafer Department of MIS
Organize your code with MVC
Introduction to web development concepts
Introduction to Web Development (Part 2)
Class01 Course Introduction
Class06 Arrays MIS 3502 Jeremy Shafer Department of MIS
PHP: includes MIS 3501 Jeremy Shafer Department of MIS
Form Data (part 1) MIS 3502, Fall 2015 Jeremy Shafer Department of MIS
Class07 PHP: loops and includes
PDO Database Connections: Getting data out of the database
>> JavaScript: Arrays
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Introduction to JavaScript
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Arrays MIS 3502 Jeremy Shafer Department of MIS Fox School of Business
PDO Database Connections: Getting data out of the database
Form Data (part 2) MIS 3501 Jeremy Shafer Department of MIS
A second look at JavaScript
Web Systems Development (CSC-215)
Organize your code with MVC
Introduction to relational databases and MySQL
Form Data (part 2) MIS 3501 Jeremy Shafer Department of MIS
Class07 PHP: loops MIS 3501 Jeremy Shafer Department of MIS
Class05 How to get data from a form
MySQL Backup, Transfer and Restore
HTML5 APIs MIS3502 Jeremy Shafer Department of MIS
PDO Revisited MIS 3502 Jeremy Shafer Department of MIS
Sending a text message (and more)
Sessions and cookies MIS 3501 Jeremy Shafer Department of MIS
MIS JavaScript and API Workshop (Part 2)
Programming Control Structures with JavaScript Part 2
Getting started with jQuery
An introduction to jQuery
Loops and Arrays in JavaScript
Form Data (part 1) MIS3501 Jeremy Shafer Department of MIS
Introduction to JavaScript
An introduction to jQuery
Introduction to MIS3502 MIS 3502 Jeremy Shafer Department of MIS
MVC – Model View Controller
PDO and Arrays MIS 3502 Jeremy Shafer Department of MIS
Programming Control Structures with JavaScript
An introduction to jQuery
Presentation transcript:

Class02 More Arrays MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016

Our progress… New tools Weeks 1-6 Using a web framework Weeks 7-9 Using a mobile device IDE Weeks The class project (It’s a bake off!) Weeks Arrays 2.PDO 3.MVC 4.JavaScript / JSON 5.RWD / CSS We’re here…

Objectives Last time … 1.Know what an array is. 2.Be able to create an array in PHP 3.Add, change, and delete data from an array. Today … 1.Associative Arrays 2.How to loop through arrays 3.Queues and Stacks 4.Sorting Arrays 5.Multidimensional Arrays

Associative Arrays You can see that the differences in syntax between working with associative arrays, and a numerically indexed arrays are pretty minor. Instead of: array(value1,valule2,value3, …)

Using a “for” loop The PHP function count() will return the number of elements in an array. That can be handy for controlling a “for” loop like this one.

Using a “foreach” loop.

Queues and Stacks

What’s a queue? A queue is a “First in, First Out” collection of values

What’s a stack? A stack is a “Last in, First Out” collection of values With stacks, we sometimes talk about “push” and “pop” operations.

Sorting an array These three functions are the most useful.

Multidimensional Arrays

The “times table” we just built…

One more handy function…

Let’s try an exercise P ERMANENT LINK TO THIS COMIC : HTTP :// XKCD. COM /1623/