I have some Information which i have parsed from the Wikipedia Infobox using the Wikipedia API. One of my Information which i want to parse is the birthdate:
$birthdate = "birth_date = {{Birth date|1958|8|29}}"
i want have the birtdate information that the output is like this:
1958-8-29
in my considerations i can use the php function explode
but i think this is a very bad way to get in each case the right information back.
My Question is:
Does anyone know a way to parse the birthdate information in each case right, independently from the other content? And if yes, can you make a example?