How could I be splitting this string up?

So let's say that I have the date 30-01-2016 in a variable named date, which would be new date[24];.
How could I split every number in different variables?
So the 30 will be in a new variable, the 01 would be in a different variable and 2016 would be in a different variable?

PHP код:
sscanf(date"p<->iii"day ,monthyear); 

Forum Jump:

Users browsing this thread: