Converting UNIX time
I need help with a code that will convert UNIX timestamps on the fly. That is, I'm writing to php to use with an API. The data will be generated using a FOREACH loop.
Again, I only have access to the data using API.
Here's the code:
foreach ($resp['body']['members'] as $members) { echo '<p>Members: <br />'. 'Join Date: '. $members['time'].'<br />'. 'Name: ' . $members['nick']. '<br />'. 'Phone #: '. $members['phone']. '</p>';
So as this code goes through each array it would automatically convert the unix timestamp (stored in the $members['time']) into a user-friendly time, such as MM-DD-YY.
Any help is greatly appreciated.
-
jminkler -
[ 1 ] Thanks
{{ DiscussionBoard.errors[2688937].message }} -
-
Big Squid -
Thanks
{{ DiscussionBoard.errors[2689205].message }} -