Posted by forcescript on February 14, 2009
There are times when we just want to bring our television sets with us everywhere when there’s a big important football game to watch. But what if we have to go to work in the office, or we have a business trip ahead? We just have to wish that we were at home watching it, and subscribe to the pay-per-view telecast when we’re free to watch it, which can be expensive, but better than nothing at all.
Posted by forcescript on November 14, 2008
This function for change some variable into other variable.
Example : we want to change phone number : 6281234123457 into 628123412XXXX
Example :
<?php
function hide($rp)
{
$hidee = “”;
$p = strlen($rp);
$hidee = “.” . substr($rp,-4) . $hidee;
$l = strlen($rp) – 4;
$rp = substr($rp,0,$l);
$p = strlen($rp);
$hidee = $rp . XXXX;
return $hidee;
}
$phone =”6281234123457″;
$phonehide = hide($phone);
echo”$phonehide”;
?>
Result fot this :
628123412XXXX
Hope you like this function