I get a very odd error when I try this code,
$message = "I like the new forums..
This is a test
!joke:1
hmmmm";
$t1 = explode("!joke:",$message);
$t2 = explode(" ",$t1[1]);
print($t2[0]); // Out puts 1 hmmmm
Now that is very odd since it seems there is a space between the 1 and the hmmmm
I did a print_r and got this output
T1:Array ( [0] => I like the new forums.. This is a test [1] => 1 hmmmm )
T2:Array ( [0] => 1 hmmmm )
Thanks all for your help, I tryed using the one Daggeth posted but it gave me the same problem.. and returned 1 hmmmmm
Weedpacket : It comes from a file and is stored like this:
"1,So there was a guy and he..@BREAK@2,one day I guy was@BREAK" etc
I have the code to get it from the file, but getting the ID to match it is the only problem right now.
Thanks again.
- Rayn