Welcome, Guest
Username: Password: Remember me

TOPIC: str_replace

str_replace 4 months 3 weeks ago #105618

Hi,

I am working on a project where the client requires there to be periods in some of the variable names in the SPSS output (> v16) from the surveys. I figured that the easiest way to accomplish this would be to use a placeholder "ZZ" for the periods in limesurvey and then use a str_replace function to modify these before output.

Looking at export.php line 566, there already is an function with an array. I appended my intended function to this but it doesn't seem to have any effect. See below. Am I missing something obvious?

Line 566:

$ftitle = str_replace(array(" ","-",":",";","!","/","\\","'","ZZ"), array("_","_hyph_","_dd_","_dc_","_excl_","_fs_","_bs_","_qu_","."), $ftitle);

Kind regards,

PB9K
The administrator has disabled public write access.

str_replace 4 months 3 weeks ago #105620

It appears that any changes I make to export.php are not being loaded. I have cleared all local caches but I still see no effect of any changes.

Any ideas on how I can fix this?
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.104 seconds
Donation Image