<?php $res = preg_split("/(?=[0-9])/", 'fujitsu30001'); var_dump($res); // your code goes here
Standard input is empty
array(6) { [0]=> string(7) "fujitsu" [1]=> string(1) "3" [2]=> string(1) "0" [3]=> string(1) "0" [4]=> string(1) "0" [5]=> string(1) "1" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!