This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Removing characters from a sentence

Old posts that have not been replied to for several years.
Locked
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Removing characters from a sentence

Post by cerberus_gr »

Hello,

I have this value on an array:

{Data1:Data2:Data3:Data4:Data5}

and I want to cut the { and } characters, but maybe one or more of the Data* to contain one of these ({ or }) characters. How have to use the string trimleft|trimright commands?

Thx
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

If it's always in that form, why not do

string range $data 1 end-1
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

I'm such an idiot :(. Thx
Locked