note 19942 deleted from function.ereg-replace by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Fri, 09 Aug 2002 23:23:41 +0000 |
| Subject: | note 19942 deleted from function.ereg-replace by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34642@lists.php.net to get a copy of this message | ||
Olá,
Se você precisa substituir alguma parte do texto por um inteiro, o php não substituirá, só
excluirá o que você pediu para substituir. Então faça o seguinte:
$id = 4;
$temp = $id . "";
ereg_replace($subst,$temp,$string);
Ismael Carelli