<?php
$string = 'image.-380x409.jpg';
echo '<pre>';
var_dump( strpos($string, '.'));
echo '</pre>';
//$string = substr_replace ( mixed $string , mixed $replacement , mixed $start [, mixed $length ] );
- Output for 5.6.38, 7.0.0 - 7.0.32, 7.1.0 - 7.1.24, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
- <pre>int(5)
</pre>
preferences:
140.97 ms | 404 KiB | 213 Q