[PHP-WIN] Re:[PHP-WIN] help in understanding string / integer concatenation

2005-01-11 Thread Mihai Frisan
that's what you need: $str = 'hello "' . ($i+1) . '"'; you must put $i+i in brachets in order to evaluate first the expresion $i+1 and then concatenates it to the string best regards mihai i'm not young enough to know everything Hello all; I am a new PHP user. (But not new at programing.)

Re: [PHP-WIN] help in understanding string / integer concatenation

2005-01-11 Thread Michael Purdy
Raymond This produces what I think you want: $str = 'hello' . ($i+1); Mike - Original Message - From: "Raymond Still" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 12, 2005 4:50 PM Subject: [PHP-WIN] help in understanding string / integer concatenatio

[PHP-WIN] help in understanding string / integer concatenation

2005-01-11 Thread Raymond Still
Hello all; I am a new PHP user. (But not new at programing.) I'm running Win XP, Apache, PHP 5.0.3 (and PostgreSQL 8, not that that should make a difference). I'm trying to use PHP to generate drop down lists of arbitrary length in a form ( and ) I've come across something strange, to me, in usi