Write a PHP script to print the current date in the following format

  • برمجة بي اتش بي

Write a PHP script to print the current date in the following format.

Sample format : (assume current date is September 01, 2013)
2013/09/01
13.09.01
01-09-13

الأجوبة

<?php
echo date("Y/m/d") . "\n";
echo date("y.m.d") . "\n";
echo date("d-m-y")."\n";
?>

Sample Output:

2017/02/16                                                  
17.02.16                                                    
16-02-17
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...