Ver original$texto = 'Hola @nombre, te escribo...';$valor = 'Pedro'; echo str_replace('@nombre', $valor, $texto); // Hola Pedro, te escribo...