Count future - Php

Count down

Snippet Code


  
Rate this page :
  [ 0 votes]

This will count through the sentences in a section of text and show how many words are contained within it and also it will be calculate and show how many days there are from the current date to a date in the future that you define.

<?php echo "<center><b>********Count Words******** "; $text = "This will count through the sentences in a section of text and show how many words are contained within it."; $count = count(explode(" ", $text)); echo "$text contains ampnbsp;===>" .$count." words "; echo "****************************** "; echo "********Future Days******** "; echo "Hiox Birthday "; $day = 17; $month = 11; $year = 2011; $days = (int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400); echo "There are $days days until $day/$month/$year "; echo "******************************</b></center>"; ?>

Tags


Ask Questions

Ask Question