Sin hinders everything now, especially man’s experience of God’s presence.


Some application's is used from when you get up in the morning and is often the last thing you interact with at night..

Get it on Google Play
Hey check out this Lord Shiva App at:
Get it on Google Play Get it on Google Play

Wednesday, 14 September 2011

IT

Using Static Variables


 Problem

You want a local variable to retain its value between invocations of a function.

Solution

Declare the variable as static:
function track_times_called( ) {
    static $i = 0;
    $i++;
    return $i;
}

No comments:

Post a Comment



Review by User -> This is Really Nice App . Now I don't have to google the things about lord shiva . I can seen them in the app itself also loved the sharing feature in gallery option ..

Hey check out this Lord Shiva App at:
Get it on Google Play Get it on Google Play