11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.it-ebooks.info• CONTENTSAdding a Value to the End of an Array.................................................................................................. 110Removing a Value from the Front of an Array ...................................................................................... 111Removing a Value from the End of an Array......................................................................................... 111Locating Array Elements................................................................................................111Searching an Array............................................................................................................................... 111Retrieving Array Keys ........................................................................................................................... 113Retrieving Array Values ........................................................................................................................ 113Traversing Arrays...........................................................................................................113Retrieving the Current Array Key.......................................................................................................... 114Retrieving the Current Array Value ....................................................................................................... 114Retrieving the Current Array Key and Value ......................................................................................... 115Moving the Array Pointer...................................................................................................................... 115Passing Array Values to a Function ...................................................................................................... 116Determining Array Size and Uniqueness .......................................................................117Determining the Size of an Array.......................................................................................................... 117Counting Array Value Frequency .......................................................................................................... 118Determining Unique Array Values......................................................................................................... 119Sorting Arrays................................................................................................................119Reversing Array Element Order ............................................................................................................ 119Flipping Array Keys and Values ............................................................................................................ 121Sorting an Array.................................................................................................................................... 121Merging, Slicing, Splicing, and Dissecting Arrays .........................................................126Merging Arrays ..................................................................................................................................... 127Recursively Appending Arrays.............................................................................................................. 127Combining Two Arrays ......................................................................................................................... 128Slicing an Array .................................................................................................................................... 128Splicing an Array .................................................................................................................................. 129Calculating an Array Intersection ......................................................................................................... 131Calculating Associative Array Intersections ......................................................................................... 131ix

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!