<?php
$str = '3803_452.jpg';
$chars = preg_split('/_/', $str, PREG_SPLIT_OFFSET_CAPTURE
); $chars = $ext['filename'];
echo $chars;
}else
{ echo $chars[0];
}
PD9waHAKJHN0ciA9ICczODAzXzQ1Mi5qcGcnOwokY2hhcnMgPSBwcmVnX3NwbGl0KCcvXy8nLCAkc3RyLCBQUkVHX1NQTElUX09GRlNFVF9DQVBUVVJFKTsKaWYoY291bnQoJGNoYXJzKSA8IDIpCnsJJGV4dCA9IHBhdGhpbmZvKCRzdHIpOwoJJGNoYXJzID0gJGV4dFsnZmlsZW5hbWUnXTsKCWVjaG8gJGNoYXJzOwp9ZWxzZQp7CWVjaG8gJGNoYXJzWzBdOwp9Cg==