[ create a new paste ] login | about

Link: http://codepad.org/4mUtrJ6L    [ raw code | output | fork ]

PHP, pasted on Oct 30:
1
2
3
4
5
6
7
<?php

$array = array('System'=>array('1111','2222','3333'));

foreach ($array['System'] as $key => $value) {
    echo 'System "' . $key . '" has "' . $value . '" value.'."<br />\n";
}


Output:
1
2
3
System "0" has "1111" value.<br />
System "1" has "2222" value.<br />
System "2" has "3333" value.<br />


Create a new paste based on this one


Comments: