You could also use the substr function, in conjunction with the strpos function, to return the substring which starts at position 1 and ends at the position of '&code'
Last edited by loquin; 07-21-09 at 22:16.
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert