Hi,
What about:
$string = preg_replace("/(]*/","\\1 id={$counter}",$string);
atur
- Original Message -
From: "Tobias Talltorp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 09, 2003 6:35 PM
Subject: [PHP] PREG-patter
I need help with a preg-pattern for preg_replace_callback().
I need to match and replace them with .
This is as far as I have come in my code:
tabell2 cell1
tabell2 cell2
första cell i rad två
Detta är den sista
';
$counter = 0;
function bla($matches) {
global $counter;
$counter++;
re
2 matches
Mail list logo