Return the name of a day as a string


/ Published in: PHP
Save to your folder(s)

That snippet return the name of the day (in Italian, but you can easily change that). Giving a value to $offset permits to refer to a day that isn't today, and setting $short to True permits to return a three character shorthand.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.