returnsString() Saturday, 21 Nov 2026
/var/www/html/php7cookbook/source/chapter03/chap_03_developing_functions_iterators.php:14:string 'Saturday, 21 Nov 2026' (length=21)convertsToString()
/var/www/html/php7cookbook/source/chapter03/chap_03_developing_functions_iterators.php:17:string '9' (length=1)makesDateTime()
/var/www/html/php7cookbook/source/chapter03/chap_03_developing_functions_iterators.php:22: object(DateTime)[2] public 'date' => string '2015-11-21 15:25:37.124036' (length=26) public 'timezone_type' => int 3 public 'timezone' => string 'UTC' (length=3)wrongDateTime() wrongDateTime(): Return value must be of type DateTime, string returned