- Original Message -
From: "Susan Ator" <[EMAIL PROTECTED]>
> Hm... I should clarify this some more. This is the result of $Array2:
>
> Array (
> [0] => Array (
> [0] => 15083
[snip]
> What I need is to be able to assign a variable to $Array2[0] - [0] so for
> the first one it would be:
15083
$var1 = bash
$var2 = S
$var3 = 4380
etc...
How do I get to this point?
Susan
-Original Message-
From: Susan Ator
Sent: Friday, November 14, 2003 6:35 PM
To: 'CPT John W. Holmes '; ''Lowell Allen' '; 'PHP '
Subject: RE: [PHP] Having f
: Re: [PHP] Having fits with input to array
From: "Susan Ator" <[EMAIL PROTECTED]>
> Perfect! That did exactly what I needed.
Good...
> Now, *ahem*, I thought I knew how to assign variables to the elements
in
> Array2 but *cough* I'm somewhat befuddled. I've not b
From: "Susan Ator" <[EMAIL PROTECTED]>
> Perfect! That did exactly what I needed.
Good...
> Now, *ahem*, I thought I knew how to assign variables to the elements in
> Array2 but *cough* I'm somewhat befuddled. I've not been able to find
> anything in the online php manual. Could you point me in
ou,
susan
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2003 3:00 PM
To: Susan Ator; 'Lowell Allen'; PHP
Subject: Re: [PHP] Having fits with input to array
$Array1 = array();
$Array2 = array();
$cmd = " -C $pgm --no-heade
From: "Susan Ator" <[EMAIL PROTECTED]>
> For example, the command:
>
> ps -C bash --no-headers -o
fname,state,vsz,start_time,flag,user,cputime,args
> --cols 200
>
> gives me the output of:
> bash S 4396 Nov13 000 sator 00:00:00 -bash
> bash S 4392 Nov13 000 sator 00:00:00 -bash
> bash S 4396 Nov13
t; Nov13
[4] => 000
[5] => sator
[6] => 00:00:00
[7] => -bash
)
etc...
)
THIS is what I am unable to do. Does anyone have any ideas?
susan
-Original Message-
From: Lowell Allen [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2003 1
> I have a series of commands like so (with different programs on each line):
>
> display_pgm("bash");
>
> Here is the bare bones of the function 'display_pgm':
>
> function display_pgm ($pgm) {
> $cmd = " -C $pgm --no-headers -o
> pid,fname,state,vsz,start_time,flag,user,cputime,args --cols 200
8 matches
Mail list logo