<?php $string='123456w'; $year = substr($string,0,4); $month = substr($string,4,2); echo $year;
You have javascript disabled. You will not be able to edit any code.