Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.