Simplifier code
Posté : 18 août 2012, 17:21
Bonjour à tous, alors voilà je voulais demander si on pouvait simplifier ce code.
<?php
$string = '123';
echo str_replace($string[0], $string[0] . ':',$string); // Affiche 1:23
?>