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] Link to comment https://forums.phpfreaks.com/topic/22807-string-heredoc-and-complex-syntax/ 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. Link to comment https://forums.phpfreaks.com/topic/22807-string-heredoc-and-complex-syntax/#findComment-102746 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. Link to comment https://forums.phpfreaks.com/topic/22807-string-heredoc-and-complex-syntax/#findComment-102838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.