php function get next sunday date code example Example: php get next saturday echo date("Y-m-d", strtotime("next Saturday"));