I want to insert a character after the first character in a word using PHP like this, ID: R-CDA12345 to first character in this ID serves as the type of an item so I can easily know where it is from.
I tried a method like this,
$id_number = "RCDA12345";
$char = explode(' ', $id_number);
$char[1] = "-"; // maybe it's the problem
var_export($char);
It's not working -_-