This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure. <?php $a = array(1, 2, array(“a”, “b”, “c”)); var_dump($a); ?> Result : – array(3) { [0]=> int(1) [1]=> int(2) [2]=> array(3) { [0]=> string(1) “a” [1]=> string(1) [...]
Archive for January, 2010
<?php $text = ” Hello “; $textlen = strlen($text); echo “Text is : $text \n”; echo “Text length before trim : $textlen \n”; $text = trim($text); $textlen = strlen($text); echo “Text length after trim : $textlen \n”; ?> Result: – Text is : Hello Text length before trim : 7 Text length after trim : [...]
PHP array_count_values($arr)
Posted: January 3, 2010 in Array, PHPTags: array, array_count_values($arr), PHP
array_count_values($arr) creates a histogram for the values in an array <?php $states = array(“MP”,”AP”,”RJ”,”UP”,”MH”,”HM”,”AP”,”RJ”,”MP”,”MH”,”AP”); $xstates = array_count_values($states); ksort($xstates); print_r($xstates); ?> Result: – Array ( [AP] => 3 [HM] => 1 [MH] => 2 [MP] => 2 [RJ] => 2 [UP] => 1 )
3 Idiots is a fantastic movie and it is a very touching storyline. It will entertain anyone no matter what you are into or what type of movies you like. This movie contains comedy, emotional moments and much more happyness. I RECCOMEND THIS MOVIE TO EVERYONE

