php2MySQL Posted December 4, 2007 Share Posted December 4, 2007 Hi, i have a function in my code translate() this function have 1 parameter ex: translate('key1') translate('key_2') and i want to read file and find all keys and but these parameter in array all parameter lower case, upper case, and underscores Thanks Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted December 4, 2007 Share Posted December 4, 2007 read the file in and try this $string = 'hi there key1 how are you doing key_2 with your keys_12 life?'; if (eregi('(key[s]*[_]*[0-9]*)', $string,$collector)) { print_r ($collector); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.