Examples with class constructors and constructors extends

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

Examples of object and classes inheritance

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

Example with extending class overriding a method

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

Example with object serialization

<?php     // define class with variables and methods     class className {         public $var = "variable";  ...

Basic example with preg_match() function

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

Example showing a word search with Regex

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

Example with preg_replace() function

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

Example with preg_split() function

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

Example with ereg() function and date format conversion

<?php     // Finding 'php' in the string  // 'i' means CASE SENSITIVE  if (ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date...

Example with reg_replace() function

<?php   $var = "Example of ereg_replacein php";   echo ereg_replace("( )php", "\\1php", $var); ?>