maybe a regular expression does it for you? $str ="[code=vb]"; preg_match("/\[code=([a-z]+)\]/", $str, $reg); echo $reg[1];
i assumed that your value is only lower alpha and at least one char, can simlpy be modified. ciao SVEN. "Jeremy Whitlock" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > PHP-List, > I'm working on a module and I need to be able to get the > value of: > [code=vb] > > where the results would be "vb". Can someone help? Thanks, > > Jeremy Whitlock --- MCP/MCSA > IT Manager for Star Precision, Inc. > Phone: (970) 535-4795 > Metro: (303) 926-0559 > Fax: (970) 535-0780 > Metro Fax: (303) 926-0559 > http://www.starprecision.com > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php