<?php $string = "087777807209"; // Original string $replacement = "62"; // What you want to replace the last character with // The final string $final = $replacement.substr($string, 0, 1); echo $final;
You have javascript disabled. You will not be able to edit any code.