RE: [PHP] Add $String to $Num ???
| From: | Maxim Maletsky \(PHPBeginner.com\) | Date: | Thu, 04 Oct 2001 01:12:00 +0000 |
| Subject: | RE: [PHP] Add $String to $Num ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69858@lists.php.net to get a copy of this message | ||
$sess = $String.$Num;
session_register($sess);
..is your answer :-)
...you're welcome :-)
Maxim Maletsky
www.PHPBeginner.com
-----Original Message-----
From: SilkWebDesign@aol.com [mailto:SilkWebDesign@aol.com]
Sent: giovedi 4 ottobre 2001 2.53
To: php-general@lists.php.net
Subject: [PHP] Add $String to $Num ???
Hi,
I have a variable called $String which can contain 3 random numbers like
so...
$String="12,94,423";
I then have $Num which is a single number from 1 - 20, I want to add
$String
and $Num together like this
$String$Num
So I would end up with $String1="12,94,423"; and then I can enter that
value
into my session....
session_register(String.$Num);
I have tried everyway I can think of but it never works
The reason for doing this is so I can store multiple $Strings in the
session
and use them later for a search.
Can anyone help?
Thanks
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net