Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Really funny and interesting functions here! ๐Ÿ’ก

Options
Chemaclass
Chemaclass Tech Lead Spryker Solution Partner Posts: 213 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
edited January 2023 in Knowledge Sharing

Really funny and interesting functions here! ๐Ÿ’ก
https://stitcher.io/blog/my-10-favourite-php-functions

Comments

  • U01LLUGR1F0
    U01LLUGR1F0 Posts: 60 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    Options

    Easter's date is determined by "the first Sunday after the full Moon that occurs on or after the spring equinox",
    date('Y-m-d', easter_date(2023)); // 2023-04-08

    that is actually a saturday ๐Ÿ˜„ but the function actually does return 2023-04-09

  • U01TZ93MPSQ
    U01TZ93MPSQ Posts: 40 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    Options

    I actually used levenshtein many years back to do some basic "Did you actually mean this... ?" search feature in Xenforo.