mktime PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: php_scripts.html
  • Last update:
  • Platform: Windows / Linux / BSD
  • Language: PHP
  • Price:GPL
  • Company: php-scripts.com (View more)

mktime script description:




Publisher review:
mktime - Automating manual tasks, date sorting, mktime mySQL based counter script for multiple pages

Automating manual tasks, date sorting, mktime

$diary_entries = array('121799','121899','121999','122199','122099','122399','122299','122699','122499','122799','122899','123099','122999','010800','123199','010100','010200','010500','010300','010700','010600','010900','011000','012100','011400','070700','012200','021500','071400','070800','071200','071300','073000','072000','072900','072800','073100','021801','021901','122802','122902','030301','030401','042701');sort($diary_entries);$as_timestamps = array();$i = 0;foreach ($diary_entries as $s) { $month = substr($s, 0, 2); $day = substr($s, 2, 2); $year = substr($s, 4, 2); $unix_timestamp = mktime(0,0,0, $month, $day, $year); print("$s = $unix_timestamp"); $as_timestamps[$i] = $unix_timestamp; $i ;}sort($as_timestamps);print("Now sorted by timestamp, oldest to newest");foreach ($as_timestamps as $s) { $diary_entry = date("mdy", $s); print("$s = $diary_entry");}$last_diary = $as_timestamps[$i-2];$diary_entry = date("mdy", $last_diary);print("Most recent diary entry is: $diary_entry");?>
mktime is a PHP script for Snippets scripts design by php-scripts.com. It runs on following operating system: Windows / Linux / BSD.

Operating system:
Windows / Linux / BSD

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5