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 Link to comment https://forums.phpfreaks.com/topic/80115-find-all-strign-in-the-file/ 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); } Link to comment https://forums.phpfreaks.com/topic/80115-find-all-strign-in-the-file/#findComment-406036 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.