19.08.2017, 13:10
Quote:
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?(.+?)\) Код:
$2 = cache_get_field_content_int\(0, $1\) |