Re: Strange result, 1 shows up
| From: | Jo�o C�ndido de Souza Neto | Date: | Thu, 16 Apr 2009 18:10:02 +0000 |
| Subject: | Re: Strange result, 1 shows up | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291572@lists.php.net to get a copy of this message | ||
Try using only: include('box.inc.php'); instead of echo
include('box.inc.php');
""Gary"" <gwpaul@ptd.net> escreveu na mensagem
news:63.C9.24434.0B377E94@pb1.pair.com...
> When I insert this code into a page, I get a 1 show up. Can anyone explain
> that and tell me how to get rid of it?
>
> Thanks for your help.
>
> Gary
>
> <?php
> //Chooses a random number
> $num = Rand (1,6);
> //Based on the random number, gives a quote
> switch ($num)
> {
> case 1:
> echo include('box.inc.php');
> break;
> case 2:
> echo "";
> break;
> case 3:
> echo "";
> break;
> case 4:
> echo "";
> break;
> case 5:
> echo "";
> break;
> case 6:
> echo "";
> }
> ?>
>