Jump to content

cutting parts of a string


map200uk

Recommended Posts

ive got 1/2 of what i was trying sorted out

however i now need to get rid of some of the junk,

i ned to strip the ?? (chr(0) and also the = sign and obviously the tag name

i was thinking of an array containing the field names i.e. Artist 
loop through the array and compare it with the variable, if it is there use str_replace and cut it out?

and same with the = and chr(0)

i was wondering tho is there any way i can do it without needing a number of different statements
[code]Xiph.Org libVorbis I 20020717

7
there are 7 frames present
first comment is 11 bytes long



First comment has the value => ���Album=avvvv12
2nd value is => 12 bytes
Second comment has the value => ���Artist=avril
Third comment has the value => ���Comment=aaa
Fourth comment has the value ���Genre=Alt. Rock
Fith comment has value => ���Title=girlfriend
Sixth comment has the value => ���Tracknumber=2

[/code]

Link to comment
https://forums.phpfreaks.com/topic/51720-cutting-parts-of-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.