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
$sess = $String.$Num;
session_register($sess);
..is your answer :-)
...you're welcome :-)
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: giovedi 4 ottobre 2001 2.53
To: [EMAIL PROTECTED]
Subject: [PHP] Add $String
Hi,
No that doesn't quite work, using your example it returned in my session file
!10,47,552|
If I change session_register($sess); to session_register(sess); it gives me
sess|s:9:10,47,552;
And what I want is
String1(or 2,3,4,5 etc whatever the value of $Num is)|s:9:10,47,552;
Ade
--
PHP
3 matches
Mail list logo