Hi php folks all around the globe!
I have come to the conclusion that programming with php comes much more fun,
if you have well done library of functions that you need every day! Of
course one could say that is'nt php already too full of functions. My
opinion is that good library is very handy.
Small example:
//*************** *************** *************** *********
function got($v)
{
if (isset($_REQUES T[$v])) return $_REQUEST[$v];
else return false;
}
//*************** *************** *************** *********
function has_got($v)
{
if (isset($_REQUES T[$v]))
{$_SESSION[$v] = $_REQUEST[$v]; return $_REQUEST[$v];}
elseif (isset($_SESSIO N[$v])) return $_SESSION[$v];
else return false;
}
instead of writing all the time if(isset($_REQU EST['name'])...
write if (got('name')).. .
and has_got is even more useful
So, I would like to open contest of best php standard library!
Send your lib here and enjoy international glory...
- perttu p, finland
I have come to the conclusion that programming with php comes much more fun,
if you have well done library of functions that you need every day! Of
course one could say that is'nt php already too full of functions. My
opinion is that good library is very handy.
Small example:
//*************** *************** *************** *********
function got($v)
{
if (isset($_REQUES T[$v])) return $_REQUEST[$v];
else return false;
}
//*************** *************** *************** *********
function has_got($v)
{
if (isset($_REQUES T[$v]))
{$_SESSION[$v] = $_REQUEST[$v]; return $_REQUEST[$v];}
elseif (isset($_SESSIO N[$v])) return $_SESSION[$v];
else return false;
}
instead of writing all the time if(isset($_REQU EST['name'])...
write if (got('name')).. .
and has_got is even more useful
So, I would like to open contest of best php standard library!
Send your lib here and enjoy international glory...
- perttu p, finland
Comment