Hi all, i’m a beginner who love php and have this problem, i’m already download lots of ebook of php to solve this problem, but i think i do not know how to solve this.
This is my problem :
I have a data and i put it all together inside a variable called DATA,
this is what inside of $DATA after i gather all the data that i needed.
$DATA = "
RANDOM DATA copyright of me and you 2007 and the others bread 15.22 44.97% crumbs 15.532 6.47% apple 146.932 6.555% coffe 83.72 6.537% thank you all friend and everyone data date and year 2007 RANDOM DATA
i need to only capture this data and remove the others:
bread 15.22 44.97% crumbs 15.532 6.47% apple 146.932 6.555% coffe 83.72 6.537% thank you
and split it and make each data inside another variable, like this :
$a = bread 15.22 44.97%
$b = crumbs 15.532 6.47%
$c = apple 146.932 6.555%
$d = coffe 83.72 6.537%
$e = thank you
i have an idea to search the bread string and remove any character before it and find the thank you string and remove any character after the thank you string
even there is a lot random of data before the string bread and after the thank you string
and also the data that i try to capture is random, but always in this order : letter - number - number like bread - 15.22 - 44.97%
can this be done?
Thank you for your help and sorry for my english.