Navigation

Search

phpCodeFix

Description

Fixes up any PHP code found in the old template.

Syntax

string phpCodeFix (string $string)



Parameter $string

Expected type: String
Description: The original PHP code to fix



Return value

Expected type: String
Description: The fixed code


Notes

  • Strips off PHP tags, adds a '; (closes the open echo tag) before the string and echo ' after it. Also strips slashes from single quotes.
View all versions of this function