Date: 11/28/99
- Next message: Thomas Griffin: "[PHPLIB] prepend problems"
- Previous message: Avrum Goodblatt: "[PHPLIB] registration fields, IE caching"
- In reply to: Bob Bowker: "Re: SV: RE: [PHPLIB] I can't keep the PHPLIB-"cookie""
- Next in thread: Bob Bowker: "Re: SV: SV: RE: [PHPLIB] I can't keep the PHPLIB-"cookie""
- Reply: Bob Bowker: "Re: SV: SV: RE: [PHPLIB] I can't keep the PHPLIB-"cookie""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[ Hi --
We load all possible URLs into an array, then array_walk a function which
does the $sess->url assignment. See the PHP docs for array_walk - it's
fast, and does exactly what you're looking for.
Bob. ]
I understand that and I have now read about array_walk in the manual. Here's
a sample string - in Danish, but you get the idea:
Så er <a href="arrangementer_vis.php3?nummer=8">CrazyNet 8 (Vamdrup)</a> og
<a href=\"arrangementer_vis.php3?nummer=9\">CrazyNet 9 (Odense)</a> afholdt.
Vi er ved at planlægge det næste træf (<a
href=\"arrangementer_vis.php3?nummer=10\">CrazyNet 10</a>), og den
vejledende dato er 4. - 6. februar, men andet kan endnu ikke oplyses. I
Vamdrup vil der blive afholdt et CrazyNet Millenium omkring nytår. CNM -
Årtusindets sjoveste træf!
What do I have to do to change the string into an array that I can
array_walk the $sess->url on? And how do I convert that back to a string?
Lars Sehested Geisler
larssg <email protected>
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Thomas Griffin: "[PHPLIB] prepend problems"
- Previous message: Avrum Goodblatt: "[PHPLIB] registration fields, IE caching"
- In reply to: Bob Bowker: "Re: SV: RE: [PHPLIB] I can't keep the PHPLIB-"cookie""
- Next in thread: Bob Bowker: "Re: SV: SV: RE: [PHPLIB] I can't keep the PHPLIB-"cookie""
- Reply: Bob Bowker: "Re: SV: SV: RE: [PHPLIB] I can't keep the PHPLIB-"cookie""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

