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