calling function in print statement?

This is a discussion on calling function in print statement? within the PHP General forums, part of the PHP Programming Forums category; is it possible to call a function in a print statement? In the statement below Change_Color(3, 4) is the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2004
Roy G. Vervoort
 
Posts: n/a
Default calling function in print statement?



is it possible to call a function in a print statement?

In the statement below Change_Color(3, 4) is the function en it should
change the color of $LetterKleur when 3 + 4 is 7. The function itself works
but i want to call upon it in the statement

<?
print("<BR>dit is een <Change_Color(3, 4) font color=\"$LetterKleur\">tekst
</font>met een kleur");
?>


thanks for suggestions

roy


Reply With Quote
  #2 (permalink)  
Old 02-13-2004
R. Rajesh Jeba Anbiah
 
Posts: n/a
Default Re: calling function in print statement?

"Roy G. Vervoort" <roy.vervoort@rojaal.nl> wrote in message news:<401f876f$0$333$e4fe514c@news.xs4all.nl>...
> is it possible to call a function in a print statement?
>
> In the statement below Change_Color(3, 4) is the function en it should
> change the color of $LetterKleur when 3 + 4 is 7. The function itself works
> but i want to call upon it in the statement
>
> <?
> print("<BR>dit is een <Change_Color(3, 4) font color=\"$LetterKleur\">tekst
> </font>met een kleur");
> ?>


<?
print "<BR>dit is een <". Change_Color(3, 4)." font color=\"$LetterKleur\">tekst
</font>met een kleur";
?>

Done.

--
"Success = 10% sweat + 90% tears"
If you live in USA, please support John Edwards.
Email: rrjanbiah-at-Y!com
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0