> array_values() in php ~ Online tutorial

array_values() in php

The array_values() function returns the array containing all the values of an array

syntax
array_values(array)


<?php
$sum=array(0=>"apple",1=>"orange",2=>"pine apple");
// returns the array containing all the values of an array
print_r($array);

?>

Output
Array(0=>apple
1=>orange
2=>pine apple)

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: