note 103710 deleted from function.date by tularis

From: Date: Thu, 09 Feb 2012 20:51:04 +0000
Subject: note 103710 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185956@lists.php.net to get a copy of this message
Note Submitter: rakeshnsony at gmail dot com ---- <?php /* * Date: 29 April 2011 * Rakesh Verma * Financial year quarter calculation */ // Calculation for financial year quarter(s) $qtr1=array(04,05,06); $qtr2=array(07,08,09); $qtr3=array(10,11,12); $qtr4=array(01,02,03); $c_month=date('m'); // check for quarter number if(in_array($c_month,$qtr1)) { echo "Quarter I"; } else if(in_array($c_month,$qtr2)) { echo "Quarter II"; } else if(in_array($c_month,$qtr3)) { echo "Quarter III"; } else if(in_array($c_month,$qtr4)) { echo "Quarter IV"; } ?>

« previous php.notes (#185956) next »