initial commit, with working solution. didn't use the function for exploding strings I had previously built, since it was shorter to just use the explode function already defined in php.