(PHP) - Changing two substrings inside a string

Posted by Imp4ct on Stack Overflow See other posts from Stack Overflow or by Imp4ct
Published on 2011-01-12T13:42:07Z Indexed on 2011/01/12 13:54 UTC
Read the original article Hit count: 104

Filed under:
|
|
|

This is my BIG string

BEGIN:VEVENT
UID:xxxxxx
DTSTAMP:xxxxxx
STATUS:CONFIRMED
CLASS:PUBLIC
URL:xxxxxx
SUMMARY:YYYYYYY
DESCRIPTION:xxxxxx; YYYYYYY;
DTSTART:xxxxxx
DTEND:xxxxxx
GEO:xxxxxx
LOCATION:xxxxxx
END:VEVENT

I need to change position of the two "YYYYYYY" in SUMMARY/DESCRIPTION

I have to replace them without being specific since it is implemented in a much larger function. (This string is already sliced out of a 3700 line - Calendar)

pls help! :)

© Stack Overflow or respective owner

Related posts about php

Related posts about string