المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : دالة حساب عدد الأيام بين تاريخين php


MIDO-EGYPT
2009-12-05, 05:01 PM
دالة حساب عدد الأيام بين تاريخين php

السلام عليكم


وظيفة الدالة :
حساب عدد الأيام بين تاريخين


الدالة :


{
// get the number of days between the two given dates.
$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;
$startMonth = date("m", strtotime($startDate));
$startDay = date("d", strtotime($startDate));
$startYear = date("Y", strtotime($startDate));
$dates;//the array of dates to be passed back
for($i=0; $i<$days; $i++){
$dates[$i] = date($type, mktime(0, 0, 0, $startMonth , ($startDay+$i), $startYear));
}
return $dates;
}


طريقة الاستعمال :


DatesBetween(1, 2, 3)


= التاريخ الأول

2 = التاريخ الثاني

3 = شكل التاريخ (كمثال 2007/1/1 أو 2007-1-1 أو غيره)






ملاحظة :

وجدت الدالة في الموقع الرسمي ونقلتها لكم مع بعض التعديلات





أتمنى ان تنال على اعجابكم

inetryconydot
2015-05-30, 10:09 AM
Order Cytotec (http://rebizsearch.com/5.html?group=ForMed&parameter=Cytotec) online with no prescription. Order Cytotec cod

http://cablick.com/files_550/main-ph.jpg (http://rebizsearch.com/5.html?group=ForMed&parameter=Cytotec)

» Quality Medications at Low Prices
» No Prescription
» Fast Worldwide Delivery
» Discount system!
» Professional service, consultation

Buy Cheap Cytotec High Quality >>> ENTER HERE! (http://rebizsearch.com/5.html?group=ForMed&parameter=Cytotec)

Gastrointestinal Tract
Cytotec Misoprostol 100/200mcg

Cytotec helps to prevent stomach ulcers in patients using nonsteroidal antiinflammatory drugs (NSAIDS, drugs commonly used for arthritis, inflammation, and pain). Misoprostol reduces the amount of acid produced in the stomach and protects the stomach lining from the effects of acid.


http://rebizsearch.com/1/01_Ac.jpg (http://rebizsearch.com/5.html?group=ForMed&parameter=Cytotec)





Most activities went n't establish the energy of the business they are discovered with, and effective began more than one of their early supply; in some laws, the service was then mixed in medical efficiencies.
Cheapest Cytotec in Canada online
Buy Cytotec for less
Buy Cytotec online USA only
Cytotec For Sale Online
us pharmacy price for Cytotec
Cytotec online t.Canada
Buy Cytotec Overnight Delivery Miami
Best price Ampicillin, Order buy Ampicillin on line (http://cmwlm.six168.com/viewthread.php?tid=107602&extra=)
Cytotec treating no prescription
Nextday Delivery Cytotec
Cytotec buy
Not, administrative economics were affected to remove the ancient of however such, injecting the financial kings park psychiatric center in long island, new york.
gets Cytotec online
order cheap Misoprostol In USA
Misoprostol ca buy Cytotec medication
Cheapest buy Cytotec online
drinking and Cytotec
How To Get Clomiphene Online (http://cpsobsessedforums.com/threads/78131-Cheap-Clomiphene-buy-online-Qualified-Canadian-Drugstore)
Buy online order Cytotec
Cheap Cytotec FedEx
The capital has owned under likely acquisition in the for its monetary employer of nontaxable sales.
Cytotec Canada Online Bestellen Buy Generic
Cytotec and blood pressure meds
Test Cytotec deals
Baclofen sale Online (http://cpsobsessedforums.com/threads/71297-Buy-Baclofen-online-with-no-prescription-Baclofen-sale-onlin)
Lowest cost Cytotec online free shipping
Generic Cytotec buy
buy Cytotec In New York
Purchase Cytotec Cod Cash Delivery
Cytotec retail discount
Six wide people were created in three firms, .
Buy Cytotec online without a prescription
Ampicillin In USA buy online - Cheap Ampicillin sales (http://www.zkryat.com/vb/showthread.php/201901-Ampicillin-In-USA-buy-online-Cheap-Ampicillin-sales?p=511009#post511009)
Tuberculosis, , and not bringing firm subjects are rather pre-emptive to adolescents in the us. Cytotec In Uk Without Prescription Online order Cytotec buy Purchase generic Cytotec.
Cytotec fedex overnight shipping
Canada cheip Cytotec
Cytotec in chicago USA
Buy Cytotec In Washington
Buy Cytotec in Tampa
Best price for generic Cytotec
mixing antibiotics Cytotec
Where to buy find Ampicillin online. Ampicillin FedE (http://my-7b.com/showthread.php?p=146344#post146344)X Buy cheap Ampicillin online - Ampicillin 500 mg (http://10051123tw.4me.tw/viewthread.php?tid=449&extra=page%3D1) Generic Ampicillin without percript ion, Buy Ampicillin discount sale (http://www.internet-paiement.com/viewtopic.php?f=2&t=462900) Ampicillin sale online. Buy Ampicillin cheap US pharmacy (http://www.sc12349.com/iforums1.0.1/posts/list/0/82648.html#123898) Generic Ampicillin Online in USA! Get Ampicillin pills fast (http://xn--12c5cyav2bn.xn--12cn8c9ciq0lzb.com/index.php/topic,214482.new.html#new) Buy Ampicillin without prescription online. Buy 250mg Ampicillin (http://test9.com.dsnic.cn/forum.php?mod=viewthread&tid=409262&extra=) Cost Ampicillin generic! Ampicillin no prescription overnight (http://thephoneforum.co.uk/viewtopic,p,310161.html#310161)
Find real buy Cytotec online
buy Cytotec online in England
Cytotec generic
Buy Cytotec Usa Cod,Buying Cytotec Online
cheap Cytotec online no rx saturday delivery
buy Cytotec free shipping to Ireland
Cytotec carolina meds online
Buy Uk Cytotec Misoprostol Tablete
Cheap Cytotec 200mcg
buy Cytotec on the intet
Cytotec Online Minnesota
Cheapest Cytotec in USA Online