SlideShare a Scribd company logo
What is array?
•An array is a special variable, which can hold more
than one value at a time.
Syntax:
array(“string”,”string”,”string”);
Example:
$a=array(“hello”,”world”);
echo $a[0];
echo $a[1];
1.Numeric Array
2.Associative Array
• Numeric array is used for numeric value.
• The index can be assigned automatically
(index always starts at 0), like this:
Syntax:
$array[0];
$array[1];
• Associative arrays are arrays that use named keys that you
assign to them.
Syntax:
array(“practical"=>“value", “name keys"=>“value",
“name keys"=>“value");
Example
$a=array(“practical”=>”hello”,”practical1”=>”world”);
echo $a[“practical”];
echo $a[“practical1”];
1.in_array
2.is_array
3.implode
4.explode
In_array is used for check the string is available
or not in our array.
Syntax.
in_array(string name,variable name);
<?php
$a=array("hello","world");
if(in_array(“hello",$a))
{
echo "true"."<br>";
}
else
{
echo "false"."<br>";
}
Is_array is used for check our array is array or
not.
Syntax:
is_array(variable name);
<?php
$b="hello world";
if(is_array($b))
{
echo "true"."<br>";
}
else
{
echo "false"."<br>";
}
?>
Implode is used for convert array to string.
Syntax:
implode(variable name);
Example:
<?php
$c=array("hello","how","are","you");
echo implode(" ",$c)."<br>";
?>
Explode is used for convert string to array.
Syntax:
explode(“first parameter”,variablename);
<?Php
$d="hello how are you";
$e=explode(" ",$d);
Echo $e[0];
Echo $e[1];
?>
Get : used for get a value from form.
<form action=“” method="GET">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" /> </form>
Output:
http://www.test.com/index.html?name1=valu
e1&name2=value2
Post : used for get a value from form.
<form action=“” method=“post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" /> </form>
Output: http://www.test.com/index.html

More Related Content

PPTX
Array in php
PPTX
Introduction to php 6
PPTX
Chap 3php array part1
PDF
4.1 PHP Arrays
PPTX
Array in php
PDF
PHP Unit 4 arrays
PDF
Php array
PPT
Php array
Array in php
Introduction to php 6
Chap 3php array part1
4.1 PHP Arrays
Array in php
PHP Unit 4 arrays
Php array
Php array

What's hot (20)

PPTX
Array
PDF
Arrays in PHP
ODP
Intro to The PHP SPL
PPT
Web Technology - PHP Arrays
PPT
PDF
Collections
PPT
Php Using Arrays
PPTX
Python programming lab12
PPT
03 Php Array String Functions
PDF
GDI Seattle - Intro to JavaScript Class 2
PPTX
16 containers
PPT
Class 4 - PHP Arrays
PDF
PDF
Ms Ajax Array Extensions
PDF
Marc’s (bio)perl course
PDF
Scripting3
PPTX
Bioinformatica p6-bioperl
PDF
Python - Lecture 3
PPT
12_-_Collections_Framework
PPTX
Thea: Processing OWL Ontologies - An application of logic programming
Array
Arrays in PHP
Intro to The PHP SPL
Web Technology - PHP Arrays
Collections
Php Using Arrays
Python programming lab12
03 Php Array String Functions
GDI Seattle - Intro to JavaScript Class 2
16 containers
Class 4 - PHP Arrays
Ms Ajax Array Extensions
Marc’s (bio)perl course
Scripting3
Bioinformatica p6-bioperl
Python - Lecture 3
12_-_Collections_Framework
Thea: Processing OWL Ontologies - An application of logic programming
Ad

Similar to Array,Array Function,Get Method,Post Method (20)

PPTX
PHP array 1
DOCX
Array andfunction
PPTX
Java 103 intro to java data structures
PPT
PHP array 2
PPTX
Php Basics Iterations, looping
PDF
Java R20 - UNIT-3.pdf Java R20 - UNIT-3.pdf
PDF
Array String - Web Programming
PPT
PHP-04-Arrays.ppt
PPT
Linear Data Structures, array, stack, queue
PPTX
Java script arrays
PPTX
Java script arrays
PPTX
Chap1introppt2php(finally done)
PDF
Arrays Java
PPTX
Chapter 2 wbp.pptx
PPTX
Web Application Development using PHP Chapter 4
PPTX
2 Arrays & Strings.pptx
PPTX
OOPs with java
PPTX
Marcs (bio)perl course
PPTX
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
PPTX
Pi j3.4 data-structures
PHP array 1
Array andfunction
Java 103 intro to java data structures
PHP array 2
Php Basics Iterations, looping
Java R20 - UNIT-3.pdf Java R20 - UNIT-3.pdf
Array String - Web Programming
PHP-04-Arrays.ppt
Linear Data Structures, array, stack, queue
Java script arrays
Java script arrays
Chap1introppt2php(finally done)
Arrays Java
Chapter 2 wbp.pptx
Web Application Development using PHP Chapter 4
2 Arrays & Strings.pptx
OOPs with java
Marcs (bio)perl course
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Pi j3.4 data-structures
Ad

Recently uploaded (20)

PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Cell Types and Its function , kingdom of life
PDF
Computing-Curriculum for Schools in Ghana
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
01-Introduction-to-Information-Management.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Lesson notes of climatology university.
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Microbial disease of the cardiovascular and lymphatic systems
STATICS OF THE RIGID BODIES Hibbelers.pdf
Complications of Minimal Access Surgery at WLH
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
2.FourierTransform-ShortQuestionswithAnswers.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chinmaya Tiranga quiz Grand Finale.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
VCE English Exam - Section C Student Revision Booklet
Cell Types and Its function , kingdom of life
Computing-Curriculum for Schools in Ghana
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Abdominal Access Techniques with Prof. Dr. R K Mishra
01-Introduction-to-Information-Management.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Lesson notes of climatology university.
202450812 BayCHI UCSC-SV 20250812 v17.pptx

Array,Array Function,Get Method,Post Method