I am trying to explode some links, but some of them contain 7 /
and some of them have 6 /
Therefor I get error Notice: Undefined Offset 7
, how can I overcome this:
$imagethumb = array('6 slashes in url','7 slashes'); // this is just for simulating
$imagethumbs = explode('/', $imagethumb);
$thumbname = $imagethumbs[7];