Re: [PHP4BETA] include file problems
| From: | rfeather | Date: | Wed, 11 Aug 1999 13:34:47 +0000 |
| Subject: | Re: [PHP4BETA] include file problems | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3337@lists.php.net to get a copy of this message | ||
Yes, so it's equivalent to
print("first thing".print("something")."next thing");
Again, it's nothing major; it just seems unintuitive for it not to work...
Stewart Morgan wrote:
> On Wed, 11 Aug 1999, rfeather wrote:
>
> > Not that it's a major problem, but let's say I have a page with an
> > include file with a function called printHeader(). The include file
> > is within a subdirectory called "includes". If I format the function
> > like this
> >
> > printHeader()
> > {
> > print("<table>\n<tr><td>".setFont("Some Text",
> >
> > "Arial","3","#000000")."</td></tr>\n");
> > print("</table>\n");
> > }
>
> Does setFont() print() or return() the desired text? If it prints it
> then you will have the problem you describe (since printHeader()'s call to
> setFont() will be equivalent to a print() interspersed with a second call
> to print()).
>
> Stewart Morgan
> -------------- -
> Systems Administrator
>
> Vision Interactive Ltd
> 18 Whiteladies Road, Clifton, Bristol, BS8 2LG.
>
> E-Mail : stewart@visint.co.uk
> Tel : +44 (0)117 973 0597
> Fax : +44 (0)117 923 8522
> WWW : http://www.visint.co.uk/
> ICQ : 19149382