PHP Proper Case Function
27
March
PHP function to make the first letter of each word capital and the following letters lower case. If the first character is not a letter it capitalizes the second character.
PHP function to make the first letter of each word capital and the following letters lower case. If the first character is not a letter it capitalizes the second character.
function isValidEmail($email)
{
$myReg="/^[A-Za-z0-9_-]+@[A-Za-z0-9_-]+\.([A-Za-z0-9_-][A-Za-z0-9_]+)$/";
if(preg_match($myReg, $email))
return true;
else
return false;
}
Here is a nice short function to execute an HTTP POST using cURL.
PHP HTTP POST Request With cURL
There are no comments, but it is self explanatory.
This snippet of code demonstrates how to execute an HTTP POST request without using curl.
This will not work in versions < PHP5 .
“Timesheet.php is a PHP application designed to keep track of the hours worked by multiple people on multiple projects. It allows users to log in through their web browser and manage the times that they are clocked on or clocked off.”
The application is easy to install if you have mild experience with PHP and MySQL.