explode()
0 Comments
substr($email, strpos($email, “@”)+1);
$s1 + $s2 <?php
$array = array (true => 'a', 1 => 'b'); var_dump ($aray); ?>
It will output NULL <?php
$array = array (3 => 'a', '1b' => 'b', 'c', 'd'); echo ($array[1]); ?>
A notice. associations. Which of the following PHP sorting functions would you use?
asort(); <?php
$array = array ('1', '1'); foreach ($array as $k => $v) { $v = 2; } ?>
array (’1′, ’1′) <?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 |