How to insert 10 in the position of a word in php?

There is a line of type sdfsdfqwesadasdasdasdasd.jpg. How to insert 10 position some the word to get dfsdfqwesadasdasdasdasdsome.jpg
July 9th 19 at 10:32
4 answers
July 9th 19 at 10:34
Solution
select user, count(0) as total, sum(status=1) as st1 from tablename group by user having total > 1000 and st1 > 500
July 9th 19 at 10:36
I'm too dumb to understand how the previous 2 answers related to your question )
July 9th 19 at 10:38
Maybe you need,maybe not need, You know better.
July 9th 19 at 10:40
It seems that the question changed.
Suddenly change again, so now it looks like this:
There is a line of type sdfsdfqwesadasdasdasdasd.jpg. How to insert 10 position some the word to get dfsdfqwesadasdasdasdasdsome.jpg


// Well, for example, something like this

$filename = "abcabcabca.jpg";
$filename = substr($filename, 0, 10) . "NEW" . substr($filename, 10);

echo $filename; // abcabcabcaNEW.jpg

Find more questions by tags PHP