<?php
$meu_array = array("123_rui", "125_joao", "287_manuel"); $procurar = "/123/";
$substituir = "10";
$meu_array = preg_replace($procurar, $substituir, $meu_array); echo "<pre>";
echo "</pre>";
PD9waHAKCiRtZXVfYXJyYXkgPSBhcnJheSgiMTIzX3J1aSIsICIxMjVfam9hbyIsICIyODdfbWFudWVsIik7CiRwcm9jdXJhciA9ICIvMTIzLyI7CiRzdWJzdGl0dWlyID0gIjEwIjsKJG1ldV9hcnJheSA9IHByZWdfcmVwbGFjZSgkcHJvY3VyYXIsICRzdWJzdGl0dWlyLCAkbWV1X2FycmF5KTsKZWNobyAiPHByZT4iOwpwcmludF9yKCRtZXVfYXJyYXkpOwplY2hvICI8L3ByZT4iOw==