* Thus wrote Student ([EMAIL PROTECTED]): > Hi i was hoping if someone can help; > > I want to trim the following text > > [i:abcdef] > > but the inside text is different at time eg abcdef, bcdefg, etc etc > how can i trim [i:(some text here)] so that i can replace them with nothing. > > eg these are to be trimmed. > > [i:abcdef] > [i:bcdefg]
http://php.net/substr echo substr('[i:abcdef]', 3, -1); Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php