<?php
$array = array ('1', '1'); foreach ($array as $k => $v) { $v = 2; } ?>
array (’1′, ’1′)
1 Comment
<?php
$multi_array = array("red", "green", 42 => "blue", "yellow" => array("apple", 9 => "pear", "banana", "orange" => array("dog", "cat", "iguana") ) ); ?>
$multi_array['yellow']['orange'][1]
The filesystem <?php
ob_start(); for ($i = 0; $i < 10; $i++) { echo $i; } $output = ob_get_contents(); ob_end_clean(); echo $ouput; ?>
A notice <?php
$a = 'a'.file_exists(__FILE__); $a1 = 'wiki'; $a2 = 'kiwi'; echo ${$a}; ?> What is displayed on this page?
WIKI <form action="index.php" method="post">
<input name="element[]"> <input name="element[]"> </form> <?php echo $_GET['element']; ?>
A notice
Asynchronous JavaScript and XML
Math.round(7.25)
if (i != 5) How do you write a conditional statement for executing some statements only if “i” is equal to 5?2/27/2012
if (i==5) |