Set: php array functions

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Sharing

With group: None (edit)
HTML link to set: Plain link:
Share on Facebook Share on MySpace

All 16 Terms

Term Definition
print_r($array) print array
array_push($pasta, 'tagliatelle') add new item to array
array_pop($pasta) remove last item from array
array_shift($pasta) remove first (top) item from array
array_unshift($pasta, 'tagliatelle') add an item to the begining of the array
explode(', ', $str) split the $str string to small strings by del ','
$array = array ('a', 'b', 'c') define an array
implode(' and ', $colors) join all the items in array $colors into one string with del 'and'
rsort ($array) sort item alphabeticly reveresed
sizeof($artists) get size of array
array_keys($array); return the array keys into an array
array_values($array) return the array values into an array
foreach ($array as $item) { ... } iterate on an array
is_array($var) check if $var is an array
array_unique($array) remove duplicated from array
trim() strip whitespace

Set Information

Terms 16
Creator Eyale
Created February 20, 2007
Groups None
Tags www, array, html, php
Access Anyone
Edit Creator Only
Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.

Top Users

  1. Liljaime6 - 1 score
  2. brianyang - 1 score

Most Missed Words

  1. print_r($array)print array - 1 miss
  2. array_shift($pasta)remove first (top) item from array - 1 miss