At 12:10 AM -0400 9/9/06, Robert Cummings wrote:
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and return
one of them. Something like:
public function
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
tedd wrote:
At 12:10 AM -0400 9/9/06, Robert Cummings wrote:
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select
On Sat, 2006-09-09 at 08:44 -0400, tedd wrote:
At 12:10 AM -0400 9/9/06, Robert Cummings wrote:
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and
At 11:19 AM -0400 9/9/06, Robert Cummings wrote:
Or something like that. :-)
$easy_peasyier = array(foo1 = 1, foo2 = 2, foo3 = 3);
echo($easy_peasyier['foo1']);
That's zero marks on any exam I ever wrote. You didn't properly read the
business requirements that specified the
On Sat, 2006-09-09 at 16:05 -0400, tedd wrote:
At 11:19 AM -0400 9/9/06, Robert Cummings wrote:
Or something like that. :-)
$easy_peasyier = array(foo1 = 1, foo2 = 2, foo3 = 3);
echo($easy_peasyier['foo1']);
That's zero marks on any exam I ever wrote. You didn't
On Sat, 09 Sep 2006 08:55:35 -0500, Christopher Weldon [EMAIL PROTECTED]
wrote:
class myClass {
private var $_001;
private var $_002;
private var $_003;
public function access_var($var) {
return $this-$$var;
}
}
$cs = new myClass;
Martin, Tedd, Robert, Christopher,
Thank you all for your advice and examples.
I had not been aware that it was possible to simply add another $
ahead of the variable, to make a variable of the variable's name.
And especially thank you for expressing an example in terms of a class
and
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and return
one of them. Something like:
public function returnVar($n)
{
return $(somehow n is made to reference the name of the variable);
}
And then in later scripts I
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and return
one of them. Something like:
public function returnVar($n)
{
return $(somehow n is made to
9 matches
Mail list logo