A wrapper is a piece of code that you write around another piece of code to make it usefull in more situations:
Say I for instance want to add a certain string to all the lines I print. (i know this is silly but it does explain it)
I could do the folowing:
$theStringIAdd = "send me money"
echo "bla bla bla" . $theStringIAdd;
echo "bla2 bla2 bla2" . $theStringIAdd;
and so forth.
I could also write a wraper function:
funtion wrapperEcho($string)
{
echo $string . "send me money";
}
Which would make it possible for me to write the above this way:
wrapperEcho ("bla bla bla");
wrapperEcho ("bla2 bla2 bla2");
I hope this explained it.
-christian