I have a date in this format 2068-06-15. I want to get the year from the date, using php functions. Could someone please suggest how this could be done.
Assuming you have the date as a string (sorry it was unclear from your question if that is the case) could split the string on the - characters like so: