Log in

View Full Version : add code for today date in my php class/function



rhodarose
05-17-2011, 07:40 AM
Good day!

I want to know what is the syntax for date(dd-mm-yyyy) and how can I insert it to my code:


$Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'];


Sorry, because I'm not familiar with class and function.

i want toe result is Preview/Filename/Date/

Thank you so much

rhodarose
05-17-2011, 08:05 AM
How can I add this code:



$this->csvUploadPaymentDetails[0]['week_num']


with this code:



$Mail->Subject = 'Preview/' . $this->csvUploadPaymentDetails[0]['csvfilename'] .'/'.date('d-m-Y');


to make the subject become:

Preview/Filename/Date/Week No

Thank you