We can do some tests
I suggest the following
<?php
$str = '11/33/'; // will return array with 3 elements, last empty
$str = '11/'; // will return array with 2 elements, last empty
//$str = '11'; // will return array with 1 element, '11'
//$str = ' /'; // will return array with 2 element, space + empty
//$str = '/'; // will return array with 2 element, both empty
//$str = ''; // will return array with 1 element, empty
///////////////////////////////////////////////////////////////////////
//$str = trim( $str ); // if needed remove spaces
//$str = rtrim( $str, '/' ); // remove trailing '/'
//$arr = split( '/', $str );
// same as:
$arr = split('/', rtrim($str, '/'));
if( empty($arr[0]) ){ // note that 1 space is not = empty
$arr = array();
}
echo count( $arr ); // will give you number of numbers in the string
echo '<br />';
var_dump($arr);