Latest Tutorials
|
Questions and Answers
|
Ask Questions?
|
Site Map
Home
Java
Frameworks
Database
Technology
Web Development
Build/Test Tools
Servers
PHP
Home
Tutorial
Php
Phparray
php array append
php array append
Posted on: October 27, 2009 at 12:00 AM
This section demonstrates the use of the append function of the php array
append function is used to add the element in the last position of the array
It adds the element to the array created by the ArrayObject class
Example of PHP Array Append Function
<?php
$ar1
=
new
ArrayObject(
array
(
"aaa"
,
"bbb"
,
"ccc"
));
foreach
(
$ar1
as
$a
)
echo
$a
.
" "
;
$ar1
->append(
"ddd"
);
echo
"<br>after appending <br> "
;
foreach
(
$ar1
as
$a
)
echo
$a
.
" "
;
?>
Related Tags for php array append:
«Previous
Index
Next»
Latest
Frameworks
Category
Google Ranking Update for Spammy Queries
Google Penguin Algorithm update issues and How to Recover
change database values when click next button on jsp page
Java
Creating Array in PHP
for-each loop in java
Iterator in java
Java Array declaration
What is Virtual Appliance?
Creating multiple Threads
Hibernate
Struts 1.x
Struts 2
JSF
JavaFX
Ajax
Spring 2.5
Spring 3
DOJO
iBatis
Flex 3
Flex 4
Hibernate Framework
( 1057 )
Struts Framework
( 836 )
Spring Framework
( 567 )
XML
( 196 )
Ajax
( 528 )
JavaScript
( 109 )
Java
( 1806 )
Web Services
( 71 )
Database
( 145 )
Technology
( 90 )
Web Development
( 503 )
PHP
( 406 )