Welcome Guest, Not a member yet? Register   Sign In
str_replace with constants not working...
#1

[eluser]Iverson[/eluser]
Anyone have an idea why this might not be working? I understand that I'm using constants, but I thought PHP would recognize what I was trying to do...

Code:
$fake_vars[] = VAR_COMPANY_NAME; // VAR_COMPANY_NAME is '%company-name%'
$real_vars[] = $company['name'];

// EMAIL_SUBJECT_NEW_CUSTOMER is "Welcome to %company-name%"
$subject = str_replace($real_vars, $fake_vars, EMAIL_SUBJECT_NEW_CUSTOMER);


Messages In This Thread
str_replace with constants not working... - by El Forum - 03-29-2009, 08:57 AM
str_replace with constants not working... - by El Forum - 03-29-2009, 09:27 AM
str_replace with constants not working... - by El Forum - 03-29-2009, 07:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB