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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |