JustinK101 Posted October 2, 2006 Share Posted October 2, 2006 Trying to use the string complex syntax but its annoying me and not working. I am trying to call a function call, here is my code. Thanks for the help.[code]echo <<<ENDTEXT <p> <input type="submit" name="clock_in" value="{$lang_clock} {ucfirst({$CURRENT_CLOCK})}" class="clock" /> </p>ENDTEXT;[/code] Quote Link to comment Share on other sites More sharing options...
JustinK101 Posted October 2, 2006 Author Share Posted October 2, 2006 Sorry I wasnt clear, the problem is in my value="{$lang_clock} {ucfirst({$CURRENT_CLOCK})}" attribute. Quote Link to comment Share on other sites More sharing options...
moxicon Posted October 3, 2006 Share Posted October 3, 2006 Functions don't work inside HEREDOCs. Also, the curly braces are unnecessary in your example. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.