Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

arrayiterator(3) [php man page]

ARRAYITERATOR(3)							 1							  ARRAYITERATOR(3)

The ArrayIterator class

INTRODUCTION
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)

Check Out this Related Man Page

RECURSIVECACHINGITERATOR(3)						 1					       RECURSIVECACHINGITERATOR(3)

The RecursiveCachingIterator class

INTRODUCTION
... CLASS SYNOPSIS
RecursiveCachingIterator RecursiveCachingIteratorextends CachingIteratorCountableArrayAccessOuterIteratorRecursiveIterator Methods o public RecursiveCachingIterator::__construct (Iterator $iterator, [string $flags = self::CALL_TOSTRING]) o public RecursiveCachingIterator RecursiveCachingIterator::getChildren (void ) o public bool RecursiveCachingIterator::hasChildren (void ) Inherits o public CachingIterator::__construct (Iterator $iterator, [string $flags = self::CALL_TOSTRING]) o public int CachingIterator::count (void ) o public void CachingIterator::current (void ) o public array CachingIterator::getCache (void ) o public void CachingIterator::getFlags (void ) o public Iterator CachingIterator::getInnerIterator (void ) o public void CachingIterator::hasNext (void ) o public scalar CachingIterator::key (void ) o public void CachingIterator::next (void ) o public void CachingIterator::offsetExists (string $index) o public void CachingIterator::offsetGet (string $index) o public void CachingIterator::offsetSet (string $index, string $newval) o public void CachingIterator::offsetUnset (string $index) o public void CachingIterator::rewind (void ) o public void CachingIterator::setFlags (bitmask $flags) o public void CachingIterator::__toString (void ) o public void CachingIterator::valid (void ) PHP Documentation Group RECURSIVECACHINGITERATOR(3)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tar Problem

I need to do a bakcup for some files, in the same tape but in diferente time.... at 9am i need the file /public/test1.txt then... tar -cvf /dev/st0 /public/test1.txt at 12pm i need the file /public/test2.txt the.... tar ¿? /public/test2.txt in this point i have problem beacuse when... (3 Replies)
Discussion started by: sokobans
3 Replies

2. UNIX for Dummies Questions & Answers

Help!! please!

:confused: I printed some directions on how to make my own web page and they told me to us unix. They also told me to first make a new directory called public then, change it to cd public, but I don't know how can you help me please? I would really appreciate it. Thank you, Jamie (2 Replies)
Discussion started by: wiccagirl
2 Replies

3. Shell Programming and Scripting

iterate over array

I can not for the life of me figure out how to iterate over this array { 'name1' => { 'a' => . 'b' => }, 'name2' => { 'a' => . 'b' => } } I want a for loop to iterate through the first element (name1 and name2 in my example) but I can't figure it out. Help... (2 Replies)
Discussion started by: IMTheNachoMan
2 Replies

4. UNIX for Dummies Questions & Answers

cp command

hi folks.. I am trying the following command in a solaris box: however after some time I'm getting errors like that: Any ideas what could be wrong? (1 Reply)
Discussion started by: ffpradella
1 Replies

5. Cybersecurity

apparent non randomness in a public pgp key

Hello here is what I've seen inside some public pgp keys. gAIAAAAAAAkBAAAAAAoAAAAFAAoArwFI/gkAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... (1 Reply)
Discussion started by: morten44
1 Replies

6. Shell Programming and Scripting

Problem when assign the array with the string index

I come across the problems when assigning the array in the script below . How to use the array with the 'string index' correctly ? When I assign a new string index , the array elements that are previously assigned are all changed .:eek::eek::eek: $ array=211 $ echo ${array} 211 $... (4 Replies)
Discussion started by: youareapkman
4 Replies

7. IP Networking

Setting up private and public ip on same machine.

Hi, We have a ftp server which is running on public ip and out side of firewall. Users out side of our network and users of our local network both using the same public ip and doing upload and downloading. Last few days we are facing bandwidth problem as internal network users increased. ... (1 Reply)
Discussion started by: abduljabbar_11
1 Replies

8. Programming

C++ overriding Vs hiding

class B { public: void fns(void){//base def;} }; class D:public B { public: void fns(void) {//new def;} }; I was thinking the above is overriding but somewhere else i found the above is just hiding.Only virtual functions can be considered as overriding? This is the exact statement ... (1 Reply)
Discussion started by: johnbach
1 Replies

9. Cybersecurity

Request for SSH2 public key

Hey all, I have a request from a third party that will be setting my firm up for an account so we can sftp files to their server in a Production environment. I know where the public keys are located on our Red Hat Linux envronment. I was going to ftp the keys from the Linux environment over to my... (2 Replies)
Discussion started by: dfb500
2 Replies

10. Shell Programming and Scripting

Finding my public IP

Hi I do use this line to find my public IP. Is there other way I can do this? Maybe create the script some shorter? wget -q -O - http://minip.no | grep "<b>" | head -n1 | cut -d'<' -f3 | cut -d'>' -f2 Thanks (1 Reply)
Discussion started by: Jotne
1 Replies

11. Shell Programming and Scripting

Writing my public IP to Dropbox, Cronjob

Hello. I want to achieve this: 1.) Finding my public IP. I have this and it works perfectly: wget http://ipecho.net/plain -O - -q ; echo2.) I need to write this in a dropbox folder (let's say /home/myusername/dropbox). 3.) Put this script in a cronjob for repeating this every 10 minutes. ... (2 Replies)
Discussion started by: lozicd3
2 Replies

12. UNIX for Dummies Questions & Answers

PGP importing public keys method

Hi Guys, I am trying to import the public of vendor to my system. I am getting below error while importing public key. can anyone please help me with this?? laranakejt4:/u/raja/.pgp $ pgp --import secure.asc 0x1545A56A52:import key (4007:key failed signature check) secure.asc:import key... (2 Replies)
Discussion started by: Vinoth Kumar G
2 Replies