|
Post Count: 20
Location: Newport, Wales |
Post Title: explode array for fread fwrite uchhhh
Okayy
So I have a text area, the value of which is determined by $_POST the value would be something like:
|
| Posted On 27th Feb 10 @ 11:12:pm |
|
|
Post Count: 462
Location: London, UK |
Post Title: RE: explode array for fread fwrite uchhhh
str_replace('++ ', '', $array[$i]);
should fix your problem. ![]()
|
| Posted On 27th Feb 10 @ 11:47:pm |
|
|
Post Count: 20
Location: Newport, Wales |
Post Title:
edit: oh hang on, where?
|
| Posted On 27th Feb 10 @ 11:26:pm |
|
|
Post Count: 402
Location: UK |
Post Title: RE: explode array for fread fwrite uchhhh
![]()
"Shit happens, and then you recode. And I happen to recode quite a lot..."
|
| Posted On 27th Feb 10 @ 11:57:pm |
|
|
Post Count: 20
Location: Newport, Wales |
Post Title:
still get the extra "++ "
|
| Posted On 27th Feb 10 @ 11:08:pm |
|
|
Post Count: 20
Location: Newport, Wales |
Post Title:
i didnt know whether i shoudlve used foreach?
|
| Posted On 28th Feb 10 @ 12:00:am |
|
|
Post Count: 402
Location: UK |
Post Title: RE: explode array for fread fwrite uchhhh
output wrote
++test1 ++test2 ++test3++
++ test1 ++ test2 ++ test3 there u go
![]()
"Shit happens, and then you recode. And I happen to recode quite a lot..."
|
| Posted On 28th Feb 10 @ 12:31:am |
|
|
Post Count: 20
Location: Newport, Wales |
Post Title:
lmfao look at the first line
theres still an extra ++ at the end ive worked out the problem i just dont know how to fix it look back to when it was just "for" $i = 0 $i++ which means its starting with $i = 1 i thinks
|
| Posted On 28th Feb 10 @ 12:55:am |
|
|
Post Count: 402
Location: UK |
Post Title: RE: explode array for fread fwrite uchhhh
lmao, here
![]()
![]()
"Shit happens, and then you recode. And I happen to recode quite a lot..."
|
| Posted On 28th Feb 10 @ 12:12:am |
|
|
Post Count: 20
Location: Newport, Wales |
Post Title:
woo
![]() got there in the end ta ![]() Am working on a change log appender
|
| Posted On 28th Feb 10 @ 12:54:am |
|