- var_dump: documentation ( source)
- strpos: documentation ( source)
<?php
$string = 'image-380x409.jpg';
echo '<pre>';
var_dump( strpos($string, '.'));
echo '</pre>';
//$string = substr_replace ( mixed $string , mixed $replacement , mixed $start [, mixed $length ] );