simple example of html mail in php?

<?php
// multiple recipients
$to = ‘text@examples.com'
// subject
$subject = 'HTML email';

// message
$message = '
<html>
<head>
<title>HTML EMAIL</title>
</head>
<body>
<p>Sample of HTML EMAIL!</p>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Joe <joes@examples.com>, Kelly <kellys@examplescom>' . "\r\n";
$headers .= 'From: HTML EMAIL <samples@examples.com>' . "\r\n";
$headers .= 'Cc: samples@examplescom' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>

difference between mysql_connect() and mysql_pconnect()?

When mysql_pconnect() is used, the function initially tries to find an open persistent connection. If found; the identifier is returned. In this case, a new connection is not established. On the other hand, when mysql_connect() is used, a new connection is established.
Using mysql_pconnect(), the connection is not closed to enable future use.
Example:
mysql_pconnect("localhost","mysql_user","mysql_pwd");

what's difference between in_array() and array_search() in php?

in_array() checks if the specified value exits in the array,while array_search() searches an array for a given value and returns the key
example of in_array():
<?
$a1=array("a"=>"one","b"=>"two");
if(in_array("one",$a1))
{
echo "exit";
}else
{
echo "not exist";
}
//example of array_search():
 $a1=array("a"=>"one","b"=>"two");
echo array_search("one",$a1);
it returns: a
?>