php array functions

About this set

Created by:

Eyale  on February 20, 2007

Subjects:

www, array, html, php

Classes:

PHP Concepts and Terms

Log in to favorite or report as inappropriate.
Pop out
No Messages

You must log in to discuss this set.

php array functions

print_r($array)
print array
1/16

Study:

Cards (new!)

Learn

Test

Speller

Scatter

Games:

Scatter

Space Race

Tools:

Export

Copy

Combine

Embed

Order by

Terms

Definitions

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

First Time Here?

Welcome to Quizlet, a fun, free place to study. Try these flashcards, find others to study, or make your own.

Set Champions

There are no high scores or champions for this set yet. You can sign up or log in to be the first!