Hopefully this might just be a few lines of code and if so I would be grateful if someone could supply. (My head is spinning with ereg pattern matching)
I need some php code
29
Hopefully this might just be a few lines of code
and if so I would be grateful if someone could supply.
(My head is spinning with ereg pattern matching)
The requirement:
--------------------------------------------------------
I have a string which can contain any number of 'tokens'.
A token is text enclosed by {}
So for example
==> Hello {abc}, goodbye {def}
I want to remove the {} and replace each token
with a string derived from the token.
So I end up with
==> Hello xxx, goodbye yyy
where xxx = function (abc)
yyy = function (def)
--------------------------------------------------------
Thanks
Harvey
and if so I would be grateful if someone could supply.
(My head is spinning with ereg pattern matching)
The requirement:
--------------------------------------------------------
I have a string which can contain any number of 'tokens'.
A token is text enclosed by {}
So for example
==> Hello {abc}, goodbye {def}
I want to remove the {} and replace each token
with a string derived from the token.
So I end up with
==> Hello xxx, goodbye yyy
where xxx = function (abc)
yyy = function (def)
--------------------------------------------------------
Thanks
Harvey
- jaggyjay
- [1] reply
- Neil Morgan
- [1] reply
- samstephens
- ofir Banned
- [1] reply
- Harvey Segal
- drewjones Banned
- [1] reply
- Harvey Segal
- drewjones Banned
- [1] reply
- Harvey Segal
- drewjones Banned
- [1] reply
- Harvey Segal
- n2links
- [2] replies
- Harvey Segal
- andr102
- rwil02
- [1] reply
- Harvey Segal
- rwil02
- [1] reply
- Harvey Segal
- MarioKing
Next Topics on Trending Feed
-
29