Converting INI To Mysql in an easier way.
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
It won't do anything because the variable isn't passed by reference. That means it needs to be preceded with an ampersand symbol (&) in the function header.

However, wouldn't it be far simpler to perform a search-and-replace? I think it's worthwhile to learn about regular expressions because there are lots of cases where these are useful. For instance, you can replace all INI_Int lines using a regular expression like so:

Search:
Код:
INI_Int\((.+?),\s?(.+?)\)
Replace:
Код:
$2 = cache_get_field_content_int\(0, $1\)
Seems like I got something new to learn, thanks for the information, cheers! Where can I learn more about it? And about that search and replace too.
Reply


Messages In This Thread
Converting INI To Mysql in an easier way. - by StrikerZ - 19.08.2017, 07:30
Re: Converting INI To Mysql in an easier way. - by Vince - 19.08.2017, 08:54
Re: Converting INI To Mysql in an easier way. - by StrikerZ - 19.08.2017, 13:10
Re: Converting INI To Mysql in an easier way. - by Vince - 19.08.2017, 13:24
Re: Converting INI To Mysql in an easier way. - by StrikerZ - 19.08.2017, 13:36

Forum Jump:


Users browsing this thread: 1 Guest(s)