Example with split() function

<?php   $date = "03/08/2017";   list($month, $day, $year) = split('[/]', $date);   echo "Month: $month; Day: $day; Year: $year \n&quo...

Basic examples with date and time functions

<?php echo "<div style='font-family:Calibri;font-size:0.6em...

Basic examples with calendar functions

<?php echo "<div style='font-family:Calibri;font-size:0.6em...

Example of a PHP URL and email validation functions

<?php     // check email     $email = test_input($_POST["email"]);     if(!filter_var($email, FILTER_VALIDATE_EMAIL))  ...

Simple example with mail()

<?php     $message = "1st line <br />2nd line <br />3rd line";     $message = wordwrap($message, 100, "<br />"); // wra...

Simple example with mail() and additional headers

<?php     $message = "1st line <br />2nd line <br />3rd line";     $message = wordwrap($message, 100, "<br />"); // wra...

Example of sending an HTML email with a memo

<?php     $to = "someone@gmail.com";     $message = "     <html>     <head>     &n...

Basic example with readfile() function

<?php     echo readfile("../dir_path/file_name.txt"); ?>

Basic example with fopen(), fread() and fclose() functions

<?php     $file = fopen ("example_file.txt", "r") or die(); // open file or 'kill' script     echo fread ($file, filesize("e...

Example with uploading files server script

<?php     if (isset($_POST["submit"])) // check if a file has been submitted and if it is an image     {         $dir = &...