What PHP function can be used to format a date?
- date_format()
- format_date()
- date()
- strftime()
The strftime() function can be used to format a date and time according to a specified format string. For more information, refer to: http://php.net/manual/en/function.strftime.php
Loading...
Related Quiz
- The sort() function in PHP maintains the association between keys and values in an associative array.
- What is an interface in the context of PHP OOP?
- If you try to use a foreach loop on a non-array variable in PHP, it will result in a ______.
- The is_float() function in PHP checks if a variable is an integer.
- In PHP, you can define a static method using the static keyword like public static function FunctionName() { ______ }.