Can anyone please help me create some PHP code?
I'm trying to create some simple PHP code to use in an Actinic layout that does the following:
Takes the Actinic variable 'ProductName', replaces the spaces in the name with another manually created site variable called 'SpacerChar'.
Example:-
Input variables:
ProductName = My New Red Widget
SpacerChar = -
PHP Output:
My-New-Red-Widget
Any help greatly appreciated.
I'm trying to create some simple PHP code to use in an Actinic layout that does the following:
Takes the Actinic variable 'ProductName', replaces the spaces in the name with another manually created site variable called 'SpacerChar'.
Example:-
Input variables:
ProductName = My New Red Widget
SpacerChar = -
PHP Output:
My-New-Red-Widget
Any help greatly appreciated.
Comment