Hello I have a 6 digit number and I want to split it to 2 separate numbers do you know how can I do this ? For example the number 200509 I want to split it in to 2005 and 09.
Thank you.
[code=php] $number = 200509; $year = substr($number, 0, 4); $month = substr($number, 4); [/code]
[code=php] $date = "200509"; $year = substr($date,0,4); $month = substr($date,4,2); [/code]
Help @spyros spread the word by sharing this article on Twitter...