Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

[PHP4BETA] Error: " " is not added From: ZioBudda (michel <email protected>)
Date: 04/05/00

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 .= " ";
print("cog = --$cognome_linea--<BR>");

the result is
cog = --foo--

Why this?
Where is my error, if one?

"Te riempo de botte, che il tuo cellulare da Family diventa Orfany".

--
Michel <ZioBudda> Morelli                       michel <email protected>
ICQ UIN: 58351764
PR of PhpItalia.com

Sito WWW http://www.ziobudda.net Italian Linux FAQ http://faq.ziobudda.net Freshmeat Italia http://www.ziobudda.net/myfresh TuttoRPM http://www.ziobudda.net/TuttoRPM

-- 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>