Friday, April 1, 2011
Thursday, March 31, 2011
Best introduction for PEAR
PEAR - PHP Extension and Application Repository
PEAR is a framework and distribution system for reusable PHP components.
Install all PEAR packages
In this case, you are in full control of the entire PEAR packages installation, including PEAR Base System and any additional packages you need.
PEAR is a framework and distribution system for reusable PHP components.
Install all PEAR packages
In this case, you are in full control of the entire PEAR packages installation, including PEAR Base System and any additional packages you need.
- Step #1: Install PEAR Base System
- Step #2: Create PEAR include path.
- Step #3: Test if PEAR has been installed correctly.
Monday, March 14, 2011
func_num_args and func_get_args - php
func_num_args — Returns the number of arguments passed to the function
func_get_args -- Returns an array comprising a function's argument list.
function countAll() {
$numargs = func_num_args();
echo "Number of arguments: $numargs\n";
}
countAll(ab, bc, cd, df); // Prints 'Number of arguments: 3'
function getName() {
if(func_num_args()>0){
echo func_get_arg(0);
}else{
echo "nothing";
}
}
getName(ab, bc, cd, df); // Prints 'ab'
func_get_args -- Returns an array comprising a function's argument list.
function countAll() {
$numargs = func_num_args();
echo "Number of arguments: $numargs\n";
}
countAll(ab, bc, cd, df); // Prints 'Number of arguments: 3'
function getName() {
if(func_num_args()>0){
echo func_get_arg(0);
}else{
echo "nothing";
}
}
getName(ab, bc, cd, df); // Prints 'ab'
Tuesday, February 15, 2011
Rounded Corner Box Using CSS
<style type="text/css">
.abc{
width: 198px;
padding:5px;
padding-bottom:10px;
border:3px solid #ebebeb;
-moz-border-radius-topleft:28px;
-webkit-border-top-left-radius:28px;
-moz-border-radius-topright:28px;
-webkit-border-top-right-radius:28px;
-moz-border-radius-bottomleft:28px;
-webkit-border-bottom-left-radius:28px;
-moz-border-radius-bottomright:28px;
-webkit-border-bottom-right-radius:28px;
}
</style>
<div class="abc">
Rounded Corner Box Using CSS
JAY JE
JAY JE</div>
its look like this:
.abc{
width: 198px;
padding:5px;
padding-bottom:10px;
border:3px solid #ebebeb;
-moz-border-radius-topleft:28px;
-webkit-border-top-left-radius:28px;
-moz-border-radius-topright:28px;
-webkit-border-top-right-radius:28px;
-moz-border-radius-bottomleft:28px;
-webkit-border-bottom-left-radius:28px;
-moz-border-radius-bottomright:28px;
-webkit-border-bottom-right-radius:28px;
}
</style>
<div class="abc">
Rounded Corner Box Using CSS
JAY JE
JAY JE</div>
its look like this:
Rounded Corner Box Using CSS
JAY JE
JAY JE
(Firefox, Safari, Chrome and IE9)
JAY JE
JAY JE
Subscribe to:
Posts (Atom)