Tag Archives: code

How to re-claim 100GB Google Drive space

Recently I purchased a LG G6 phone. The first time I opened Google Drive it offered me a free 2-year 100GB Google Drive promotion. I already pay for the 1TB a year plan for my account. However, my wife could certainly use the free 100GB. I actually already pay $1.99 a month for 100GB for her, so with the free plan I could cancel the paid plan and save almost $48 over the course of 2 years. Therefore, I promptly canceled out of the

Reverse order of individual items in a delimited string

Topic: Reversing the order of individual items in a string. Specifics: I had a date contained in a GET query string that was formatted as follows: 01/27/2013 and I needed it reversed to 2013/01/27 Here is a simple method to do the reversing in PHP: $toDate = htmlentities($_GET[‘to’]); $toDateNew = implode(“/”,(array_reverse(explode(“/”,$toDate)))); Explanation of code: First you explode the $toDate variable, then reverse the resulting array, finally you implode that array back into a string. Of course there are other date