06-03-2005
I meant that milk comes from animals (and some fruits like the coconut). I just dont understand how one can use the label vegetarian if they also drink cow milk, goats milk etc. But I am ok with those veggie eaters that drink soy!!! What a weird way to eat!
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear Group,
I am not much used to UNIX. The company I am hosting wiht refuses to help me with this trouble, but as near as I can see, it is NOT my trouble.
I have had this service for over a year. I just renewed for another year and all of a sudden the disk quota has been disappearing. I... (3 Replies)
Discussion started by: cindy
3 Replies
2. UNIX for Dummies Questions & Answers
Hello
I run Gentoo Linux on my computer:
Athlon XP 1700+ ~1,46 mhz
512 mb ram
After a while, my computer works really slow, and when I cat /proc/meminfo, I see that I only have 8mb of 512 mb free!
How is that possible?
I dont run anything I can think of that eats that amount of... (4 Replies)
Discussion started by: Maestin
4 Replies
3. UNIX for Dummies Questions & Answers
hi
I have an sun ultra 5 running a firewall which has logging enabled (essential). The disk is sliced up with /proc on / (c0t0d0s0). / is sliced at 3 gig. My problem is this, one afternoon, a manager asked me to retrieve some firewall logs, so i went into the relevant directory (also on the /... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
4. Solaris
Hi,
I am not very much fmiliar with Solaris OS. My main concern for posting is One application is eating 50% of CPU and I cannot run that application, If I perform any action in that application it takes real long time.
I have solaris installed on my development machine.I have my application... (11 Replies)
Discussion started by: pandu345
11 Replies
5. Solaris
Hi,
I have installed sendmail on my solaris server. But sendmail its up high memory. its eat upto around 9-10 GB memory.
What to do in this ?
Thanks
NeeleshG (6 Replies)
Discussion started by: neel.gurjar
6 Replies
6. Shell Programming and Scripting
Hi!
Could someone explain me why the below code is printing the contents of IF block 5 times instead of 0?
#!/bin/bash
VAR1="something"
VAR2="something"
for((i=0;i<10;i++))
do
if(($VAR1=~$VAR2))
then
echo VAR1: $VAR1
echo... (3 Replies)
Discussion started by: machinogodzilla
3 Replies
7. Shell Programming and Scripting
how to find a job which is writing a big file and eating up space? (3 Replies)
Discussion started by: rush2andy
3 Replies
8. Shell Programming and Scripting
Hi all,
using AWK iam sorting auniq data from a file the file size is 8GB, while running that script , the over all cpu usage will be nearly 8
how to avoid this ?? any other alternate is available for awk?
Thanks in Advance
Anish kumar.V (13 Replies)
Discussion started by: anishkumarv
13 Replies
LEARN ABOUT PHP
iterator_to_array
ITERATOR_TO_ARRAY(3) 1 ITERATOR_TO_ARRAY(3)
iterator_to_array - Copy the iterator into an array
SYNOPSIS
array iterator_to_array (Traversable $iterator, [bool $use_keys = true])
DESCRIPTION
Copy the elements of an iterator into an array.
PARAMETERS
o $iterator
- The iterator being copied.
o $use_keys
- Whether to use the iterator element keys as index. In PHP 5.5 and later, if a key is an array or object, a warning will be gen-
erated. NULL keys will be converted to an empty string, double keys will be truncated to their integer counterpart, resource keys
will generate a warning and be converted to their resource ID, and boolean keys will be converted to integers.
RETURN VALUES
An array containing the elements of the $iterator.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.5.0 | |
| | |
| | iterator_to_array(3) gained support for key types |
| | other than integer and string when the $use_keys |
| | parameter is enabled. |
| | |
| 5.2.1 | |
| | |
| | The $use_keys parameter was added. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
iterator_to_array(3) example
<?php
$iterator = new ArrayIterator(array('recipe'=>'pancakes', 'egg', 'milk', 'flour'));
var_dump(iterator_to_array($iterator, true));
var_dump(iterator_to_array($iterator, false));
?>
The above example will output:
array(4) {
["recipe"]=>
string(8) "pancakes"
[0]=>
string(3) "egg"
[1]=>
string(4) "milk"
[2]=>
string(5) "flour"
}
array(4) {
[0]=>
string(8) "pancakes"
[1]=>
string(3) "egg"
[2]=>
string(4) "milk"
[3]=>
string(5) "flour"
}
PHP Documentation Group ITERATOR_TO_ARRAY(3)