![]() |
Put in seperate $var content whats in between *&&*
Good day to you all,
I'm looking for a way to retrieve the text in between *& &* and put it's content into a $var. for each occurrence with in a string. $occu[0] = "dsfsdf"; $occu[1] = "10"; $occu[2] = "10sct"; Is there a way to do this ? I know how to do it but not recusively. PHP Code:
Can somebody can give me a tips ? |
Impressive, here is what I come back with from before your post.
how to implement it with a foreach loop. Let says instead I use index 0 to give me the whole piece and I replace the whole string with anther with the "number" index 1 with the formated html. See code PHP Code:
|
Your loop can be confusing. It isn't wrong but can be hard to understand what is going on since you are pretty much using it like a while loop.
PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT. The time now is 12:55 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0