Hi DaniWeb Team,
I want to read the value of the below array, but i do no how to get the values.
Array
(
[0] => Zero
[1] => One
[2] => 9884127128
[3] => 98841254554
[4] => Four
[5] => Array
(
[[0]] => Delimiter
)

[6] => 9554565545
[7] => six
[8] => Array
(
[[0]] => Delimiter
)

[9] => seven
)


Thank You for u r help

prem

<?php 
$arr = array("Zero","One","9884127128","98841254554","Four",array("Delimiter"),"9554565545","six",array("Delimiter"),"seven");
echo "<pre>";
print_r($arr);
echo "</pre>";

foreach ($arr as $key => $value) {
	if (is_array($value)) {
		foreach ($value as $k => $v) {
			//
			echo $v."<br />";
		}
	} else {
		echo $value."<br />";
	}
}

?>

I hope this helps.

Thank You for u r help,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.