php4-beta | 200004
Date: 04/05/00
- Next message: Andi Gutmans: "Re: [PHP4BETA] Zend hash functions enchantments [PATCH]"
- Previous message: Phil Glatz: "Re: [PHP4BETA] trouble with beta2, freebsd 2.2.2"
- Maybe in reply to: ZioBudda: "[PHP4BETA] Error: " " is not added"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 5 Apr 2000 15:53:31 +0200 (CEST), ZioBudda <michel <email protected>> wrote:
>
> Hi, I have send it to the 2 lists because I don't know if it is my error
> in the scripts or a bug in PHP4RC1.
>
> I have this little code:
> $cognome_linea = trim($cognome_linea);
> while(strlen($cognome_linea)< 70);
> { $cognome_linea .= " ";
> print("cog = --$cognome_linea--<BR>");
> }
> print("cog = --$cognome_linea--<BR>");
>
> The enter in a loop beacuse
> $cognome_linea .= " ";
> not working. If I make
>
> $cognome_linea = "foo"
> $cognome_linea .= " ";
>
> the result is
> cog = --foo--
>
> Why this?
> Where is my error, if one?
>
Check the string length of $cognome_linea, you'll probably find that it does have all those spaces but the browser is not displaying them.
Try using:
$cognome_linea.=" ";
instead of
$cognome_linea.=" "
or <pre> tags
print("cog = <pre>--<pre>$cognome_linea--</pre><BR>");
Regards,
Alan van den Bosch
Sanguis Pty Ltd
/* All generalizations are false. */
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP4BETA] Zend hash functions enchantments [PATCH]"
- Previous message: Phil Glatz: "Re: [PHP4BETA] trouble with beta2, freebsd 2.2.2"
- Maybe in reply to: ZioBudda: "[PHP4BETA] Error: " " is not added"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

