Re: [PHP4BETA] <?= have problem.
[email protected] (Hartmut Holzgraefe) Thu, 08 Jun 2000 18:02:03 +0200
| Newsgroups | php.version4 |
|---|---|
| Organization | SIX Offene Systeme GmbH |
| Message-ID | <[email protected]> |
Home Chen wrote:
>
> I am sorry. I am type error.
>
> -----------------------------------------------------------------
> <? $mess_mess=45; ?>
> <script Language='JavaScript'>
> for (var i=0;i<<?= $allow_mess ?>;i++) {messstore[i]='';}
> </script>
> -----------------------------------------------------------------
> have some problem. it output.
>
> <script Language='JavaScript'>
> for (var i=0;i< z45;i++) {messstore[i]='';}
> </script>
>
> afrer I modify
> -----------------------------------------------------------------
> <? $mess_mess=45; ?>
> <script Language='JavaScript'>
> for (var i=0;i< <?= $allow_mess ?>;i++) {messstore[i]='';}
> </script>
> -----------------------------------------------------------------
> it's fine.
so the difference is a single space ( '< <' instead of '<<' ) ?
i'm not shure if a '<<' should work or not,
but at least it should not show the effect you experienced
so no need to be sorry, this was not your fault
it should either work or throw a warning instead of randomly
inserting characters ...
--
Hartmut Holzgraefe [email protected] http://www.six.de