Tuesday, June 18, 2013

PHP call by value and call by reference

<?php
function increment_value($y) {
    $y++;
    echo $y."<br/>";
    }

function increment_reference(&$y) {
    $y+=10;
    echo $y."<br/>";
    }
$x = 1;
increment_value($x); // prints '2'
echo $x."<br/>"; // prints '1'
increment_reference($x); // prints '2'
echo $x."<br/>"; // prints '2'
?>

Monday, April 1, 2013

Mind reader

I simply try to develop a little application using HTML/CSS/JavaScript and jQuery.Open it in a Web browser and Try it now.