DEV Community

Discussion on: 3-Letter Months with ACF and PHP

Collapse
 
nickyoung profile image
Nick Young

I love that you were able to create a solution to your problem, that's so awesome and really what programming is all about!

I just also want to share with you that instead of doing format( 'F' ); you could instead use format( 'M' ); and it will automatically return you the first three letters of the month. You can learn more about all of the PHP date functions here if you have not seen this: php.net/manual/en/function.date.php

Again, I share this to help and not to take away from anything you worked so hard on. Keep doing amazing things!

Cheers

Collapse
 
aellon profile image
Aellon • Edited

Wow thank you so much! I'm new to PHP so now I know for the future. I love that there are alternative ways of solving the problem. It was fun to figure it out!

Collapse
 
nickyoung profile image
Nick Young

That's my favorite thing about programming...you can sit 5 people down to solve the same problem and at the end have 5 totally different answers. It's like the most amazing evolving puzzle ever lol.

Cheers!