04-29-2009
oh! thanks for the info... but how to find the power outage?
7 More Discussions You Might Find Interesting
1. Linux
Dear linuxers,
I have a usb mess storage device.
My OS is rh as3 update2.
Each time I use the command
mount -t vfat /dev/sda1 /mnt/usb
I got the error "the device is not a valid block device".
I found from google that I should install the module sd_mod
I use the command
insmod sd_mod... (2 Replies)
Discussion started by: niukun
2 Replies
2. Shell Programming and Scripting
I have the following problem to be solved:
I read a .csv file (tempfile), fetch the values into variables F1 to F5.
Variables F1, F2, F3 are parameters used for running a program (blablaprogram).
Variable F4 I want to use to store the PID-value in and variable F5 is used for storing the return... (3 Replies)
Discussion started by: zwiebertje11
3 Replies
3. Solaris
Dear Expert ,
We have L7 , when we power on we see on lcd messages "drive Post E" , According sun Doc SunSolve , there problem picker or Driver , I try move slot to slot successfully, On Lcd panel i can not see load drive (look like any inside tape in drive , but when i am select eject menu,... (0 Replies)
Discussion started by: hadibn
0 Replies
4. Solaris
Hi gurus
I don't understand the below messages as what is going on with my storage
Plz kindly suggest what could be the problem
Script started on Tue 12 May 2009 09:22:13 AM GMT
OMP-root-/salil> uptime
9:22am up 19:44, 2 users, load average: 0.10, 0.08, 0.08
OMP-root-/salil> uname -a... (4 Replies)
Discussion started by: girish.batra
4 Replies
5. AIX
Hi,
When I try to create a virtual disk in IVM ( integrated Virtual Machine VIO ) I get this message
Problems occurred while processing the data. A summary of all problems for this page are listed below. Additional details for each problem may be located next to the field causing the... (0 Replies)
Discussion started by: filosophizer
0 Replies
6. UNIX for Dummies Questions & Answers
People i have solaris 9 in a sparc platform i`m tryng to conect a stora edge a5100.When i do a format i don't see the disk, later i do a touch /reconfigure reboot and nothing cant anybody help me?
thank you (4 Replies)
Discussion started by: enkei17
4 Replies
7. Solaris
Hi Guys,
I am getting some Perl problems during my Veritas Storage Foundation installation on Solaris 10, 64 Bit. The Solaris is running in a Virtual Machine on a MAC:
bash-3.00# ./installer
Can't load 'perl/lib/5.10.0/i86pc-solaris-thread-multi-64int/auto/threads/threads.so' for module... (0 Replies)
Discussion started by: Korko
0 Replies
LIST(3) 1 LIST(3)
list - Assign variables as if they were an array
SYNOPSIS
array list (mixed $var1, [mixed $...])
DESCRIPTION
Like array(3), this is not really a function, but a language construct. list(3) is used to assign a list of variables in one operation.
PARAMETERS
o $var1
- A variable.
RETURN VALUES
Returns the assigned array.
EXAMPLES
Example #1
list(3) examples
<?php
$info = array('coffee', 'brown', 'caffeine');
// Listing all the variables
list($drink, $color, $power) = $info;
echo "$drink is $color and $power makes it special.
";
// Listing some of them
list($drink, , $power) = $info;
echo "$drink has $power.
";
// Or let's skip to only the third one
list( , , $power) = $info;
echo "I need $power!
";
// list() doesn't work with strings
list($bar) = "abcde";
var_dump($bar); // NULL
?>
Example #2
An example use of list(3)
<table>
<tr>
<th>Employee name</th>
<th>Salary</th>
</tr>
<?php
$result = $pdo->query("SELECT id, name, salary FROM employees");
while (list($id, $name, $salary) = $result->fetch(PDO::FETCH_NUM)) {
echo " <tr>
" .
" <td><a href="info.php?id=$id">$name</a></td>
" .
" <td>$salary</td>
" .
" </tr>
";
}
?>
</table>
Example #3
Using nested list(3)
<?php
list($a, list($b, $c)) = array(1, array(2, 3));
var_dump($a, $b, $c);
?>
int(1)
int(2)
int(3)
Example #4
Using list(3) with array indices
<?php
$info = array('coffee', 'brown', 'caffeine');
list($a[0], $a[1], $a[2]) = $info;
var_dump($a);
?>
Gives the following output (note the order of the elements compared in which order they were written in the list(3) syntax):
array(3) {
[2]=>
string(8) "caffeine"
[1]=>
string(5) "brown"
[0]=>
string(6) "coffee"
}
NOTES
Warning
list(3) assigns the values starting with the right-most parameter. If you are using plain variables, you don't have to worry about
this. But if you are using arrays with indices you usually expect the order of the indices in the array the same you wrote in the
list(3) from left to right; which it isn't. It's assigned in the reverse order.
Warning
Modification of the array during list(3) execution (e.g. using list($a, $b) = $b) results in undefined behavior.
Note
list(3) only works on numerical arrays and assumes the numerical indices start at 0.
SEE ALSO
each(3), array(3), extract(3).
PHP Documentation Group LIST(3)