2. Who Am I?
• Hello, my name is Ben Routson
• I am currently:
• Technical Architect at Acquia
• Lead Developer for Flip Learning
• Instructor for coLearning at the Factory
• A completely self taught developer
3. What is the Factory
• The factory is a coWorking space
• You pay a small monthly fee and have access
to a shared open concept office space.
• Access to conference and skype rooms
• Technology Hub, Events, coLearning
4. What is coLearning
• Instructor guided technical training
• Lets build something together
• It takes a village
9. Arrays
• Is a compound type
• Key => Value pair
• PHP Has a bunch of built in functions
– Count, asort, key_exists, in_array
– http://php.net/manual/en/ref.array.php
• You can loop through arrays with foreach
• Or use other control structure functions
• http://us2.php.net/manual/en/language.control-
structures.php
10. User Defined Functions
• You can make your own functions also!
• Anatomy of a user defined function:
– function – tells php you will be making a function
– Naming Convention – the name you give your
function
– Arguments - Any variable that you want your
function to know about.
– Inside {} you can have it return or run other built-
in functions on the variable that you passed into
it.
11. Objects!!!!
• Objects are what cool kids use
• An object is collection of variables and
functions.
• But in an object:
– variable = property
– function = method
– Properties can be private or public
– When you call an object its called instantiation
and anything inside the __contruct() will run.