GENERATOR(3) 1 GENERATOR(3)The Generator classINTRODUCTION
Generator objects are returned from generators.
Caution
Generator objects cannot be instantiated via new.
CLASS SYNOPSIS
Generator
GeneratorIterator
Methods
o public mixed Generator::current (void )
o public mixed Generator::key (void )
o public void Generator::next (void )
o public void Generator::rewind (void )
o public mixed Generator::send (mixed $value)
o public mixed Generator::throw (Exception $exception)
o public bool Generator::valid (void )
o public void Generator::__wakeup (void )
PHP Documentation Group GENERATOR(3)
Check Out this Related Man Page
ARRAYITERATOR(3) 1 ARRAYITERATOR(3)The ArrayIterator classINTRODUCTION
This iterator allows to unset and modify values and keys while iterating over Arrays and Objects.
When you want to iterate over the same array multiple times you need to instantiate ArrayObject and let it create ArrayIterator instances
that refer to it either by using foreach or by calling its getIterator() method manually.
CLASS SYNOPSIS
ArrayIterator
ArrayIteratorArrayAccessSeekableIteratorCountableSerializable
Methods
o public void ArrayIterator::append (mixed $value)
o public void ArrayIterator::asort (void )
o public ArrayIterator::__construct ([mixed $array = array()], [int $flags])
o public int ArrayIterator::count (void )
o public mixed ArrayIterator::current (void )
o public array ArrayIterator::getArrayCopy (void )
o public void ArrayIterator::getFlags (void )
o public mixed ArrayIterator::key (void )
o public void ArrayIterator::ksort (void )
o public void ArrayIterator::natcasesort (void )
o public void ArrayIterator::natsort (void )
o public void ArrayIterator::next (void )
o public void ArrayIterator::offsetExists (string $index)
o public mixed ArrayIterator::offsetGet (string $index)
o public void ArrayIterator::offsetSet (string $index, string $newval)
o public void ArrayIterator::offsetUnset (string $index)
o public void ArrayIterator::rewind (void )
o public void ArrayIterator::seek (int $position)
o public string ArrayIterator::serialize (void )
o public void ArrayIterator::setFlags (string $flags)
o public void ArrayIterator::uasort (string $cmp_function)
o public void ArrayIterator::uksort (string $cmp_function)
o public string ArrayIterator::unserialize (string $serialized)
o public bool ArrayIterator::valid (void )
PHP Documentation Group ARRAYITERATOR(3)
I am looking for an alternative. I am not wanting to try and run it using one of those fancy programs that can run windows programs. I am trying to cut the chord from MS so I am looking for good similar programs.
Any thoughts?
If there are none, then I guess I try to run it under Linux. ... (6 Replies)
I need a great Password Generator program. I looked at a few of them, but none of them seemed to be what I wanted. So I have decided to write my own. (That's the cool thing about being a programmer....I always get what I want in software :) )
Do you have any password generators that you... (13 Replies)
Hi,
I need to create a table with random sentences. I need lines that are upto 1000 characters in lenght. I need a random sentence generator that will create sentences and output it to a text file. The sentences should be of lenght varying from 1 to 1000.
Does anyone know how this can be... (7 Replies)
Hi,
I need a script that will generate a set of random strings in sequence, with the ability to predetermine the length, quantity, and alphabet of individual string, and to use the outputs of earlier strings in the sequence to define the parameters of later strings. For examples, I might want... (5 Replies)
Hi experts,
I'd like to generate the table/file containing:
number of milliseconds elapsed since midnight till midnight.
It should contain 5 columns (hours minutes seconds milliseconds):
Table will have theoretically 86 400 000 rows.
My question is , is there somewhere the file or source... (7 Replies)
Here is my new password generation script. The attachment, swordfish.txt, is in dos format. Remember that you need to use dos2unix or flip or something to get it into unix format.
The script is self documenting. It has an extensive help system built-in. And you can run:
swordfish "set... (8 Replies)
Hello.
Happy new year for everybody.
I would like to search for "menu generator" not for menu or generator.
Is it possible ?
I get an error : Array
What is the meaning ? (5 Replies)
A very simple crude sinewave generator.
The file required is generated inside the code, is linear interpolated and requires /dev/audio to work. Ensure you have this device, if not the download oss-compat from your OS's repository...
It lasts for about 8 seconds before exiting and saves a... (5 Replies)
Hey guys, I'm trying to make a bash script to do password generation.
The script takes 2 arguments, number of characters and number of passes to generate, but I can't get the loop to work properly.
#!/bin/bash
echo
echo
echo -ne "Password length:"
read pwd_length
echo
echo -ne "Number of... (6 Replies)
Hello again unix.com people,
I need your help again. I'm currently need a script that will generate ip ranges... lets say from 64.1.1.1 to 74.255.255.255 and the output should be like this:
64.1.1.2
64.1.1.3
.............
.............
74.255.255.254
74.255.255.255
(line-by-line)
... (7 Replies)
Ok guys, gals and geeks...
As from today I am starting to learn awk in earnest doing something totally different.
I am going to create a pseudo-Audio_Function Generator centred around OSX 10.11.x minimum. The code below is a tester to see what the possibilities are.
All waveforms will be... (11 Replies)
I am using the below to random generate a password but I need to have 2 numeric characters and 6 alphabetic chars
head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo ''
6USUvqRB
------ Post updated at 04:43 PM ------
Any Help folks - Can the output be passed onto a sed command to... (9 Replies)
Hello
I use a bash script to creating the hosts file /etc/hosts
But there is a bug inside my output and I want to fix this.
My Array looks like this:
205,IP 111.122.133.20
205,HOST2 unas
205,HOST1 unas15533
205,COMMENT # UNAS
775,IP ... (9 Replies)