Date_format () and date () accept the same parameters and return the same value, so what is the difference between them

  ios, question

Date_format () and date () accept the same parameters and return the same value, so what is the difference between them?
Synonym?

References:
http://www.php.net/manual/zh/function.date.php
http://www.php.net/date_format

date_format()YesDateTimeAlias of a member function of the class.DateTimeClasses are classes introduced after PHP5.2, except fordate()It makes no difference to be better.

The main difference between using the date() function and the DateTime object is that it’s easier to modify the date values. ā€”ā€”DateTime In PHP