Hello Tristan,
Tuesday, April 6, 2004, 6:14:19 PM, you wrote:
TPrsc Simply put, can I connect 2 variables, to make one...
TPrsc I want to output:
TPrsc $view_request_$i
TPrsc making for example a string:
TPrsc view_all_2
I believe it's $view_request_$$i
--
Best regards,
Richard Davey
;
}
}
=
Richard Davey [EMAIL PROTECTED]
06/04/2004 18:27
Please respond to
Richard Davey [EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
Re: [PHP] combining variables...
Hello Tristan,
Tuesday, April 6, 2004, 6:14:19 PM, you wrote:
TPrsc Simply put, can I connect 2 variables, to make one
:27
Please respond to
Richard Davey [EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
Re: [PHP] combining variables...
Hello Tristan,
Tuesday, April 6, 2004, 6:14:19 PM, you wrote:
TPrsc Simply put, can I connect 2 variables, to make one...
TPrsc I want to output:
TPrsc
From: [EMAIL PROTECTED]
I want to output:
$view_request_$i
echo ${'view_request_'.$i};
echo ${view_request_$i};
Read the manual section on Variable Variables, please.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
Sadly, it didnb't work...
here's my code... I wanna repeat and output final variables 6 times...
==
for ($i = 1; $i = 6; $i++) {
if ($view_request_bu_$i != '') {
You could dynamically generate variable names using:
${view_request_}.$i} = $value;
This will generate:
$view_request_1
$view_request_2
...
Vishal.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 1:14 PM
To: [EMAIL PROTECTED]
Subject:
Well that was embarrassing. I guess [CTRL]+[ENTER] sends mail in Outlook!
Let's try that again:
Okay, I think this is an easy thing but I can't figure it out:
I have a script that will be uploading (up to) 4 files:
$file1
$file2
$file3
$file4
Each $file variable has associated $original_name,
i might be misunderstanding you, but anytime you need dynamic variable
names, you'll want variable variables...
$count = '123';
$name = count$count; # results in $name being 'count123'
$$name = 'something'; # results in $count123 = 'something'
jack
-Original Message-
From: Tyler
8 matches
Mail list logo