Forum Moderators: coopster

Message Too Old, No Replies

Calling a function within a variable

Possible?

         

madmatt69

6:29 pm on Jul 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey all,

I have a file I use as an include, and assign blocks of HTML to variables, and then call them within the webpage.

I have one such variable which I'd like to call a function in. Wondering if this is possible? Right now I can't get it working, and I'm not getting any error messages - the code just doesn't appear.

Here's the code in question:

$split = '</div><? make_breadcrumbs(); ?><?=$bw;?><div class="fc"><div class="fcm">';

Any suggestions?

Thanks!

dreamcatcher

7:32 am on Jul 13, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You don`t need php tags in a string:

$split = '</div>'.make_breadcrumbs().$bw.'<div class="fc"><div class="fcm">';

dc