<?php $sizes = " 39.5 40 40.5 41 41.5 42 42.5 43 43.5 ";preg_match_all('/[\.\d]+/', $sizes, $matches);print_r($matches[0]);
Standard input is empty
Array ( [0] => 39.5 [1] => 40 [2] => 40.5 [3] => 41 [4] => 41.5 [5] => 42 [6] => 42.5 [7] => 43 [8] => 43.5 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!