Monthly Archives: April 2008

04/30/2008
Comments

Functions in strings with PHP as templates

Although you can use variables within strings in PHP, you can’t do functions. Well, not quite. If your function name begins with a dollar sign ($), it works fine. You can exploit this to call non-object functions such as htmlspecialchars. … Continue reading