- substr: documentation ( source)
- strpos: documentation ( source)
- date: documentation ( source)
<?php
$factura_anterior = 201600001;
$prefijo_factura = date("Y");
$pos = strpos($factura_anterior, 6);
echo $pos." ";
$factura = substr($factura_anterior, $pos);
echo $factura;