Skip to content
TotalDev.com
  • Software
  • Contact
  • Cart
  • Checkout
  • Logout
  • Account

Array

PHP for, foreach, while, do-while Loops

September 27, 2018 Matt PalermoInstructable

PHP, like most programming languages, offers several options for iterating or “looping” through arrays.  Looping isn’t limited to just arrays.  A loop can traverse any object of an iterable type.  This means we can iterate through objects and access it’s properties […]

Read more

Flatten Multidimensional Arrays in PHP

September 26, 2018September 26, 2018 Matt PalermoInstructable

Sometimes when dealing with deeply nested, multidimensional arrays, it can be tedious to write out a full reference to an array element.  In the case of a recursive folder tree, we could see an array that looks something like this: […]

Read more

PHP Process Arrays in Batches

September 24, 2018September 24, 2018 Matt PalermoInstructable

When dealing with large amounts of data, it can advantageous to break it into smaller chunks.  PHP provides an array_chunk function that allows you to take a large array and split it into an array of smaller chunks.  This can […]

Read more

Javascript American States

September 14, 2018October 9, 2018 Matt PalermoCode

Here is a quick javascript object of American States and a few additional areas.  The object keys are the two letter abbreviated state/province: const states = { “AL”: “Alabama”, “AK”: “Alaska”, “AS”: “American Samoa”, “AZ”: “Arizona”, “AR”: “Arkansas”, “CA”: “California”, […]

Read more

PHP array of American states

November 14, 2017October 9, 2018 Matt PalermoCode

I’ve recently been tasked with creating a US state selection box. Here is a PHP array that I used to generate the html select box. I hope it will save others some time: $stateNames = [‘Alabama’, ‘Alaska’, ‘Arizona’, ‘Arkansas’, ‘California’, […]

Read more
  • VueJS Simple Bootstrap Button Component
  • Extract an image frame from a video using PHP and ffmpeg
  • PHP for, foreach, while, do-while Loops
  • Flatten Multidimensional Arrays in PHP
  • PHP Process Arrays in Batches

Archives

  • October 2018
  • September 2018
  • November 2017

Categories

  • Code
  • Instructable
  • Product

Navigation

  • Software
  • Contact
  • Cart
  • Checkout
  • Logout
  • Account

Categories

  • Code
  • Instructable
  • Product

Tags

Array Batch Bootstrap ffmpeg javascript jQuery Loops Method Chaining Multidimensional Object Oriented Programming OOP PHP Textmark Video VueJS
  • Account
  • Cart
  • Checkout
  • Contact
  • Login
  • Logout
  • Members
  • My account
  • Password Reset
  • Register
  • Shop
  • User