preg_match($arrPreg,$g->img1,$matches);
var_dump($matches);
array (size=5)
0 => string '1/7794965.jpg' (length=13)
1 => string '1/' (length=2)
2 => string '1/' (length=2)
3 => string '7794965.jpg' (length=11)
4 => string '7794965' (length=7)
preg_match($arrPreg,$g->img1,$matches);
var_dump($matches[1]);
Undefined offset: 1
подсажите как правильно ?